This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coursera-dl -u <USERNAME> -p <PASSWORD> neural-networks -f "txt" | |
find neural-networks -name '*.en.txt' | xargs cat | sed -e 's/[^[:alpha:]\ ]//g' | tr " " "\n" | tr "[:upper:]" "[:lower:]" | sort -f | uniq -i >& neural-networks.words.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -F "af=camera" http://192.168.0.1/v1/camera/shoot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RACSignal *s = [self rac_valuesAndChangesForKeyPath:@keypath(self, mutableArray) | |
options:NSKeyValueObservingOptionNew| | |
NSKeyValueObservingOptionOld | |
observer:nil]; | |
[s subscribeNext:^(RACTuple *x){ | |
NSLog(@"x:%@", x); | |
}]; | |
self.mutableArray = [NSMutableArray new]; | |
NSMutableArray *proxyArray = [self mutableArrayValueForKey:@keypath(self, mutableArray)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assetLibrary = require('de.marcelpociot.assetlibrary'); | |
assetLibrary.assetThumbnails({ | |
group:'all', | |
page:0, | |
perPage:48, | |
type:assetLibrary.TYPE_VIDEO, | |
thumbnailCallback:function(e){ | |
for(var i = 0; i < e.assets.length; i++){ | |
e.assets[i].thumbnail; // サムネイル画像です | |
e.assets[i].duration; // ムービーの時間です |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var imagePicker = require('imagePicker'); | |
imagePicker.openPhotoGallery({ | |
allowEditing:true, | |
success:function(e){ | |
e.media; // 取得したイメージ | |
e.original; // 編集前のオリジナルなイメージ | |
e.cropRect; // cropした領域 | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createEditingWindow = function(image){ | |
var window = Ti.UI.createWindow({ | |
navBarHidden:true, | |
backgroundColor:'black', | |
orientationModes:[ | |
Ti.UI.PORTRAIT | |
] | |
}); | |
var flexSpace = Ti.UI.createButton({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var person, syrup; | |
syrup = require('syrup'); | |
syrup.include('model/entity'); | |
syrup.include('model/person'); | |
person = new MYAPP.Model.Person('Coffee syrup'); | |
person.sayHello(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ユーザーインタフェース | |
*/ | |
var window = Titanium.UI.createWindow({}); | |
var feedsTable = Titanium.UI.createTableView({}); | |
var playingPanel = Titanium.UI.createView({ | |
bottom:-65, |