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
| " Use Vim settings, rather then Vi settings. This setting must be as early as | |
| " possible, as it has side effects. | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') |
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> | |
| int main(int argc, const char * argv[]) { | |
| @autoreleasepool { | |
| NSMutableArray *items = [[NSMutableArray alloc] init]; | |
| [items addObject:@"One"]; | |
| [items addObject:@"Two"]; | |
| [items addObject:@"Three"]; | |
| [items addObject:@"Four"]; |
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
| class window.EntryDate | |
| @entryDate: null | |
| @startTime: null | |
| constructor:(entryDate) -> | |
| @entryDate = +new Date() / 1000 unless entryDate? | |
| @startTime = entryDate | |
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 SimpleUtil | |
| # Simple class to show status via stdout on really long rake tasks | |
| class Spinner | |
| attr_accessor :position | |
| def initialize | |
| @position = 0 | |
| @status_marker = ['|', '/', '-', '\\'] | |
| $stdout.sync = true | |
| 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
| using terms from application "Messages" | |
| # The following are unused but need to be defined to avoid an error | |
| on message sent theMessage with eventDescription | |
| end message sent | |
| on message received theMessage with eventDescription | |
| end message received | |
| on chat room message received with eventDescription |
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
| #sudo find . -iname *.rb -exec rm '{}' \; |
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
| wget -e robots=off --mirror --convert-links --adjust-extension --page-requisites --no-parent <site to mirror> |
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 'bindata' | |
| class CustomProtocol < BinData::Record | |
| endian :big | |
| stringz :command_word | |
| uint8 :op1 | |
| uint8 :op2 | |
| 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
| require 'bindata' | |
| class CustomProtocol < BinData::Record | |
| endian :big | |
| stringz :command_word | |
| uint32 :op1 | |
| uint32 :op2 | |
| end |