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
| #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
| #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
| 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
| # script for incrementing short version string for Xcode. | |
| InfoPlist="${SRCROOT}/${INFOPLIST_FILE}" | |
| buildNumber=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $InfoPlist` | |
| buildNumber=`echo $buildNumber + 1.0 | bc` | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" $InfoPlist | |
| vvv=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" $InfoPlist` | |
| mm=`echo $vvv | cut -d . -f 1,2` | |
| last=`echo $vvv | cut -d . -f 3` |
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
| require "Nokogiri" | |
| xml = File.open("./data.xml").read | |
| doc = Nokogiri.XML(xml) | |
| def convert_to_markdown(mw) | |
| mw.gsub!(/^# /, '1. ') | |
| mw.gsub!(/^\* /, '- ') | |
| mw.gsub!(/^====(.+)====$/, '#### \1') | |
| mw.gsub!(/^===(.+)===$/, '### \1') |
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 | |
| SDK="iphoneos" | |
| CONFIGURATION="Release" | |
| PROJECT_FILE="SampleApp.xcodeproj" | |
| TARGET_NAME="SampleApp" | |
| SCHEME_NAME="SampleApp" | |
| PRODUCT_NAME="SampleApp" | |
| IPA_FILE_NAME="SampleApp" | |
| OUT_APP_DIR="out" |
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
| (* | |
| このスクリプトの改造、再配布OK | |
| *) | |
| property theNoteBookName : "209.マンダラート" -- 保存するノートブック名 | |
| property htmlTemplate : "<html> | |
| <head> | |
| <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> | |
| <title><<title>></title> |