Skip to content

Instantly share code, notes, and snippets.

View Lewuathe's full-sized avatar
🈂️
👍

Kai Sasaki Lewuathe

🈂️
👍
View GitHub Profile
#include <iostream>
int add(int a, int b){
return a+b;
}
int main(void){
std::cout << add(1,2) << std::endl;
return 0;
}
@Lewuathe
Lewuathe / file0.txt
Created February 21, 2013 13:36
Kill some buffers on Emacs ref: http://qiita.com/items/b49117cfbd2b09137203
C-x k
バッファ名を指定する
// Provide a list of targets we're expecting - the first in the list is the default
[qUtils addTargetName:@"MyTarget" atPath:@"MyTarget.xml"];
// [qUtils addTargetName:@"Stones & Chips" atPath:@"StonesAndChips.xml"];
// [qUtils addTargetName:@"Tarmac" atPath:@"Tarmac.xml"];
@Lewuathe
Lewuathe / app.js
Created March 10, 2013 07:26
Basic authentication with express ref: http://qiita.com/items/f6e539cfe9cd19822017
var auth = express.basicAuth(function(user,pass){
return user === myuser && pass === mypasswd;
});
@Lewuathe
Lewuathe / file0.txt
Last active October 28, 2016 08:27
How to get movie with AVFoundation ref: http://qiita.com/Lewuathe/items/838b47c36be0e1d368da
@interface VideoCameraViewController (){
AVCaptureSession *_session;
}
@Lewuathe
Lewuathe / file0.txt
Created March 14, 2013 13:37
Configuration AVCaptureDevice ref: http://qiita.com/items/e0b93ccaa17a9e0e8f31
device.focusMode = AVCaptureFlashModeOn;
@Lewuathe
Lewuathe / file0.txt
Last active March 5, 2017 13:34
Difference between NSURL and NSString ref: http://qiita.com/Lewuathe/items/54d21a4f2f470db4431f
NSURL *url = [NSURL URLWithString:[NSHomeDirectory() stringByAppendingString:@"/Documents/test.txt"]];
@interface SomeObject : NSObject
@end
@Lewuathe
Lewuathe / file0.txt
Created March 21, 2013 13:57
Conversion between NSURL and filePath ref: http://qiita.com/items/16addae18a9b4d7682b7
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:@"/dir/file.txt"];
// or
NSURL *fileURL = [NSURL fileURLWithPath:@"/dir/file.txt"];
@Lewuathe
Lewuathe / file0.txt
Created March 24, 2013 02:53
concat iPhone movie with ffmpeg ref: http://qiita.com/items/9bc7d4b0754bb0e39e42
$ ffmpeg -i input1.MOV input1.mpg
$ ffmpeg -i input2.MOV input2.mpg