Skip to content

Instantly share code, notes, and snippets.

View pingguoilove's full-sized avatar
🎯
Focusing

John.Chang pingguoilove

🎯
Focusing
View GitHub Profile
#import <Cocoa/Cocoa.h>
static bool done = false;
@interface MyApp : NSObject
- (void)A;
- (void)B:(NSInteger)n;
@end
@implementation MyApp
https://www.infoq.cn/article/jd-ios-component-management
ffmpeg -i http://.../playlist.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4
/*
* This is an example provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
//
// RoundedCornerImageA.m
// tutugogo
//
// Created by ohsc on 11-12-28.
// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//
#import "RoundedCornerImageA.h"
/*
* ColourUtils.h
*
* Copyright 2012 Stewart Hamilton-Arrandale.
* http://creativewax.co.uk
*
* Modified by Yannick Loriot.
* http://yannickloriot.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
+ (void)saveMusicFromURL: (NSURL *)sourceURL
toFile: (NSURL *)destURL
completion: (void(^)(BOOL success))_completion
{
AVURLAsset *asset = [AVURLAsset URLAssetWithURL:sourceURL options:nil];
NSError *err = nil;
AVAssetReader *reader = [[AVAssetReader assetReaderWithAsset: asset
error: &err] retain];
if(err)
//
// ViewController.m
// AVPlayerCaching
//
// Created by Anurag Mishra on 5/19/14.
// Sample code to demonstrate how to cache a remote audio file while streaming it with AVPlayer
//
#import "ViewController.h"
#import <AVFoundation/AVFoundation.h>