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
Pod::Spec.new do |s| | |
s.name = "MNMBottomPullToRefresh" | |
s.version = "0.0.1" | |
s.summary = "." | |
s.description = <<-DESC | |
MNMBottomPullToRefresh is a solution to add pull-to-refresh feature to the bottom of an UITableView instead of the top, as usual. | |
DESC | |
s.homepage = "https://github.com/emenegro/bottom-pull-to-refresh" | |
s.platform = :ios, '5.0' | |
s.author = 'Mario Negro' |
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
#import <Foundation/Foundation.h> | |
@interface NSObject (PerformBlock) | |
- (void)performBlock:(void (^)())block afterDelay:(NSTimeInterval)delay; | |
@end |
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
#import "NSObject+PerformBlock.h" | |
@implementation NSObject (PerformBlock) | |
- (void)performBlock:(void (^)())block | |
{ | |
block(); | |
} | |
- (void)performBlock:(void (^)())block afterDelay:(NSTimeInterval)delay |
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
module IdeaCard | |
module ModuleMethods | |
functions = %w(goal point change) | |
current_file_path = File.dirname(__FILE__) | |
functions.each do |m| | |
eval <<-EOC | |
def #{m} | |
path = File.expand_path "./#{m}s", "#{current_file_path}" | |
@#{m}s ||= load(path) | |
@#{m}s.sample |
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
自慢したくなるように | |
ありがたみ/価値が伝わるように | |
静になるように | |
高級感がでるように | |
記憶に残る/くせになるように | |
高齢者が使いやすいように | |
コレクションできる/マニア向けになるように | |
同時にできるように | |
持ち運びやすくするために | |
目立たない/ばれないように |
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
#!/bin/sh | |
# 引数の数を確認 | |
if [ $# -ne 2 ]; then | |
echo "Usage: gifmaker.sh [file] [zoom ratio by percent]" 1>&2 | |
echo "" 1>&2 | |
echo " ex) gifmaker.sh movie.mp4 50" 1>&2 | |
exit 1 | |
fi |
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
#!/usr/bin/env ruby | |
while l = gets do | |
if l.index '?? ' | |
puts l.gsub( /\?\? /, '' ) | |
end | |
end |
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
#!/usr/bin/env ruby | |
while l = gets do | |
if l.index '?? ' | |
path = l.gsub( /\?\? /, '' ) | |
system "rm -rf #{path}" | |
end | |
end |