Skip to content

Instantly share code, notes, and snippets.

@protocol CoverManagerDelegate
-(void)didFinishComplete:(id)manager;
@optional
-(void)progressLoadCount:(int)count manager:(id)manager;
@end
@yurfuwa-chan
yurfuwa-chan / gist:3317729
Created August 10, 2012 20:48
FDT:How Do I Export A Release Build?
-optimize=true
-omit-trace-statements=true
@yurfuwa-chan
yurfuwa-chan / gist:3359646
Created August 15, 2012 12:16
LocalNotificationへの登録
- (void)viewDidLoad{
[super viewDidLoad];
//全notificationの解除
[[UIApplication sharedApplication] cancelAllLocalNotifications];
//notificationを登録
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:[self getDiffFromTodayWithFormat:@"201208152113"]];
[self registNotification:date message:@"時間になったよ"];
var template = new t("<div>Hello {{=name}}</div>");
document.body.innerHtml = template.render({name: "World!"});
<script src="raphael.2.1.0.min.js"></script>
<script src="justgage1.0.min.js"></script>
//..
<div id="gauge" class="200x160px"></div>
//..
<script>
@yurfuwa-chan
yurfuwa-chan / find.sh
Created August 23, 2012 10:28
findで探してパイブwhile回す
//findで探してパイブwhile回す
find ... | while read f; do
echo $f
echo $(basename $f)
done
@yurfuwa-chan
yurfuwa-chan / gist:3922800
Created October 20, 2012 09:40
gruntjs+jasmine-headless-webkit
//https://github.com/gruntjs/grunt/
module.exports = function(grunt){
grunt.initConfig({
//execタスクとしてjasmine-headless-webkitを追加。
exec:{
jasmine:{
command:"jasmine-headless-webkit",
stdout:true
}
@yurfuwa-chan
yurfuwa-chan / grunt.js
Created December 12, 2012 11:00
gruntでhtmllintする
module.exports = function(grunt){
grunt.initConfig({
htmllint:{
all:['index.html']
},
watch:{
files:['index.html'],
tasks:'htmllint'
}
});
@yurfuwa-chan
yurfuwa-chan / ClickSpec.js
Created December 14, 2012 12:23
mocha zombie
var assert = require("assert")
var Browser = require("zombie")
describe("description", function() {
var browser = new Browser();
var window = null;
var $ = null;
beforeEach(function(done){
browser.visit("http://private.localhost/private/test/zombie-mocha/",function(){
@yurfuwa-chan
yurfuwa-chan / gist:4337994
Created December 19, 2012 16:25
カーソルを自動的に()の中へ
" カーソルを自動的に()の中へ
imap {} {}<Left>
imap [] []<Left>
imap () ()<Left>
imap "" ""<Left>
imap '' ''<Left>
imap <> <><Left>
imap // //<left>
imap /// ///<left>