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
| -- Coda Light | |
| -- | |
| -- By Henrik Nyh <http://henrik.nyh.se>, 2007-04-26 | |
| -- His original script: http://henrik.nyh.se/2007/04/coda-light-applescript | |
| -- | |
| -- Changes for Transmit 4 and AppleScript 2 by Ian Soper <http://iansoper.com>, 2010-12-15 | |
| -- | |
| -- An AppleScript to start working on a web development project by | |
| -- * opening the project in TextMate, | |
| -- * opening related URLs in the default browser, |
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
| $ git clone github:lenary/guides.git | |
| Cloning into guides... | |
| remote: Counting objects: 255, done. | |
| remote: Compressing objects: 100% (216/216), done. | |
| remote: Total 255 (delta 111), reused 163 (delta 35) | |
| Receiving objects: 100% (255/255), 1.49 MiB | 564 KiB/s, done. | |
| Resolving deltas: 100% (111/111), done. | |
| $ cd guides | |
| $ git remote -v |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>DVTConsoleDebuggerInputTextColor</key> | |
| <string>0.811765 0.796078 0.564706 1</string> | |
| <key>DVTConsoleDebuggerInputTextFont</key> | |
| <string>Inconsolata - 16.0</string> | |
| <key>DVTConsoleDebuggerOutputTextColor</key> | |
| <string>1 1 1 1</string> |
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
| # see also: http://d.hatena.ne.jp/takahashim/20101201/p1 | |
| class ActionMailer::Base | |
| def process_with_fix_encoding(*args) | |
| process_without_fix_encoding(*args) | |
| message.transport_encoding = '8bit' | |
| end | |
| alias_method_chain :process, :fix_encoding | |
| 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
| # coding: utf-8 | |
| module Mail | |
| class Message | |
| def from_with_patch_rfc_violation | |
| str = from_without_patch_rfc_violation | |
| begin | |
| str = str.join | |
| rescue |
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 | |
| require 'ansi/code' | |
| require 'bundler' | |
| require 'json' | |
| require 'open-uri' | |
| class Integer | |
| def to_currency | |
| self.to_s.reverse.gsub(/(\d{3})(?=\d)/, '\1,').reverse | |
| 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
| #!/bin/bash | |
| coffee -scp --bare | sed 's/</\</g' | sed 's/>/\>/g' | |
| # original: https://github.com/jashkenas/coffee-script-tmbundle/blob/master/Commands/Compile%20and%20Display%20JS.tmCommand |
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 | |
| # | |
| # A quick script to dump an overview of all the open issues in all my github projects | |
| # | |
| require 'octokit' | |
| require 'awesome_print' | |
| require 'rainbow' |
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 <UIKit/UIKit.h> | |
| @interface MyPickerView : UIView | |
| <UIPickerViewDataSource, UIPickerViewDelegate> | |
| { | |
| UIToolbar *toolbar; | |
| UIPickerView *picker; | |
| void (^completion)(NSString *selected); |
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
| #if !defined(COMPARE) | |
| #define COMPARE(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? NSOrderedAscending : (__a > __b ? NSOrderedDescending : NSOrderedSame); }) | |
| #endif |