This file contains 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
# | |
# rb_main.rb | |
# photouploader | |
# | |
# Created by orta on 26/03/2011. | |
# Copyright (c) 2011 http://www.ortatherox.com. All rights reserved. | |
# | |
# Loading the Cocoa framework. If you need to load more frameworks, you can | |
# do that here too. |
This file contains 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
NSString *path = [[NSBundle mainBundle] bundlePath]; | |
NSURL *baseURL = [NSURL fileURLWithPath:path]; | |
NSString *js = [NSString stringWithFormat:@"var headID = document.getElementsByTagName('head')[0];var cssNode = document.createElement('link');cssNode.type = 'text/css';cssNode.rel = 'stylesheet';cssNode.href = '%@/override.css';cssNode.media = 'screen';headID.appendChild(cssNode);", baseURL]; | |
[_webView stringByEvaluatingJavaScriptFromString:js]; |
This file contains 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
body{ | |
background-color:black !important; | |
} |
This file contains 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
-(void)injectCSS { | |
NSString *path = [[NSBundle mainBundle] pathForResource:@"override" ofType:@"css"]; | |
NSString * cssString = [NSString stringWithContentsOfFile:path encoding:NSASCIIStringEncoding error:nil]; | |
cssString = [cssString stringByReplacingOccurrencesOfString:@"\n" withString:@""]; | |
cssString = [cssString stringByReplacingOccurrencesOfString:@"\"" withString:@"'"]; | |
NSString * js = [NSString stringWithFormat:@"$('head').append('<style>%@</style>');", cssString]; | |
[webView stringByEvaluatingJavaScriptFromString:js]; | |
} |
This file contains 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
-(void)injectCSS { | |
NSString *path = [[NSBundle mainBundle] pathForResource:@"override" ofType:@"css"]; | |
NSString * cssString = [NSString stringWithContentsOfFile:path encoding:NSASCIIStringEncoding error:nil]; | |
cssString = [cssString stringByReplacingOccurrencesOfString:@"\n" withString:@""]; | |
cssString = [cssString stringByReplacingOccurrencesOfString:@"\"" withString:@"'"]; | |
NSString * js = [NSString stringWithFormat:@"$('head').append('<style>%@</style>');", cssString]; | |
[webView stringByEvaluatingJavaScriptFromString:js]; | |
} |
This file contains 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
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:~/spiel/zsh |
This file contains 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/ruby | |
def log(bit) | |
puts "\033[35m#{bit} \033[0m" | |
end | |
log "Creating a new Wibble project." | |
log "What folder would you like to put it in?" | |
folder = gets.chomp |
This file contains 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
{ | |
// Delay in ms until autocompletion pops up after . or :: or -> | |
// Set to 0 to disable | |
"popup_delay": 100, | |
// Delay in ms until recompiling the file after the buffer is modified | |
// Set to 0 to disable | |
"recompile_delay": 1000, | |
// Whether or not to hide the clang output panel when it's empty |
This file contains 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 | |
set -e | |
EDITOR=slime | |
TITLE=${1} | |
POSTDIR=_posts | |
EDITDIR=edit | |
cd /Users/orta/spiel/html/rebase |
This file contains 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
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
pager = true | |
[color "branch"] |