Skip to content

Instantly share code, notes, and snippets.

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'
#import <Foundation/Foundation.h>
@interface NSObject (PerformBlock)
- (void)performBlock:(void (^)())block afterDelay:(NSTimeInterval)delay;
@end
#import "NSObject+PerformBlock.h"
@implementation NSObject (PerformBlock)
- (void)performBlock:(void (^)())block
{
block();
}
- (void)performBlock:(void (^)())block afterDelay:(NSTimeInterval)delay
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
自慢したくなるように
ありがたみ/価値が伝わるように
静になるように
高級感がでるように
記憶に残る/くせになるように
高齢者が使いやすいように
コレクションできる/マニア向けになるように
同時にできるように
持ち運びやすくするために
目立たない/ばれないように
@pi-chan
pi-chan / gifmaker.sh
Created January 22, 2014 12:31
shellscript for converting .mp4 / .mov to .gif
#!/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
#!/usr/bin/env ruby
while l = gets do
if l.index '?? '
puts l.gsub( /\?\? /, '' )
end
end
#!/usr/bin/env ruby
while l = gets do
if l.index '?? '
path = l.gsub( /\?\? /, '' )
system "rm -rf #{path}"
end
end
#import <KIF/KIF.h>
@interface NavigationTests : KIFTestCase
@end
@implementation NavigationTests
- (void)testTab1
{
@pi-chan
pi-chan / slideshare.rb
Last active April 3, 2019 03:17
download slideshare slide as PDF
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
require 'prawn'
url = "http://www.slideshare.net/nippondanji/db-engineerstudyanim"
charset = nil
html = open(url) do |f|