Skip to content

Instantly share code, notes, and snippets.

View atomicink's full-sized avatar

YuC atomicink

  • China
View GitHub Profile
@atomicink
atomicink / MusicPlayer.m
Last active August 8, 2017 02:25
Midi Music Player
#import <AudioToolbox/AudioToolbox.h>
@interface MidiPlayer : UIView {
MusicPlayer player;
MusicSequence sequence;
}
- (void)playMidi:(NSString *)path {
NSURL *midiUrl = [NSURL URLWithString:path];
@atomicink
atomicink / resizeImage.m
Created May 26, 2015 06:29
resizeImage
+ (UIImage*) resizeImage:(UIImage*)origImage toSize:(CGSize)newsize {
UIGraphicsBeginImageContextWithOptions(newsize, NO, 0.0);
[origImage drawInRect:CGRectMake(0, 0, newsize.width, newsize.height)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return newImage;
}
@atomicink
atomicink / wenku8.txt
Created February 16, 2020 09:58
轻小说文库txt下载
全本下载
http://dl.wenku8.com/down.php?type=utf8&id=书号&fname=书名
type: txt/utf8/big5
分卷下载
http://dl.wenku8.com/packtxt.php?aid=书号&vid=卷号&aname=书名&vname=卷名&charset=utf-8
aid: 本书编号
vid: 本卷第1章编号-1
aname: 书名
vname: 卷名