Skip to content

Instantly share code, notes, and snippets.

View orklann's full-sized avatar
🏠
Working from home

rkt orklann

🏠
Working from home
View GitHub Profile
@orklann
orklann / gist:6625618
Last active December 23, 2015 10:59
Sublime Text: Set gutter bgcolor in sublime text

In preference

"highlight_line": false
<key>lineHighlight</key>
<string>#f7f7f7</string>
@orklann
orklann / gist:6632171
Created September 20, 2013 01:25
Wordpress: Cache issue

Comment out this line in /Library/bones.php

add_filter( 'style_loader_src', 'bones_remove_wp_ver_css_js', 9999 );

change the main style.css import statement to this

 wp_enqueue_style( 'main-bones-css', get_stylesheet_directory_uri() . '/style.css', NULL, Time() );
@orklann
orklann / gist:6670489
Last active December 23, 2015 17:39
Rails: View Rails debug messages in the browser console with Rconsole
@orklann
orklann / gist:6670573
Created September 23, 2013 13:42
Javascript: Write a Date() like a human
http://thechangelog.com/write-a-date-like-a-human/
@orklann
orklann / gist:6684822
Created September 24, 2013 13:37
Javascript: Stop writing Regular Expressions. Express them with Verbal Expressions.
http://thechangelog.com/stop-writing-regular-expressions-express-them-with-verbal-expressions/
@orklann
orklann / gist:6684903
Created September 24, 2013 13:42
Javascript: Oh, Behave.js! IDE Style to normal text area in browser
http://thechangelog.com/oh-behave-js/
@orklann
orklann / gist:6685048
Created September 24, 2013 13:49
CSS: Flat UI
http://designmodo.github.io/Flat-UI/
http://thechangelog.com/flat-ui-user-interface-kit-from-designmodo/
@orklann
orklann / gist:6729083
Created September 27, 2013 14:04
IE Detection in Javascript
<script type='text/javascript'>
var ie = !-[1,];
alert(ie); // true for ie
</script>
@orklann
orklann / gist:7576389
Created November 21, 2013 05:09
Colloquy Running Exception
2013-11-21 13:09:09.785 ColloquyDaemon[3431:303] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Connection could not be registered. Another process likely has registered with the same name.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8dbcb41c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8d5c2e75 objc_exception_throw + 43
2 ColloquyDaemon 0x000000010000b802 -[CQDaemonClientConnectionController init] + 802
3 ColloquyDaemon 0x000000010000b4a6 __55+[CQDaemonClientConnectionController defaultController]_block_invoke + 54
4 libdispatch.dylib 0x00007fff90d9e2ad _dispatch_client_callout + 8
5 libdispatch.dylib 0x00007fff90d9e21c dispatch_once_f + 79
6 ColloquyDaemon 0x000000010000b44d +[CQDaemonClientConnectionController defaultController] + 141
@orklann
orklann / gist:9884918
Created March 31, 2014 03:51
Objc completion error on textmate2
NSString *str = [NSString stringWith(tab)
Showed up errors below:
sh: : command not found
/Users/mac/Library/Application Support/TextMate/Managed/Bundles/Objective-C.tmbundle/Support/objc_completion.rb:482:in `load': Cannot parse a NULL or zero-length data (OSX::PropertyListError)
from /Users/mac/Library/Application Support/TextMate/Managed/Bundles/Objective-C.tmbundle/Support/objc_completion.rb:482:in `show_dialog'
from /Users/mac/Library/Application Support/TextMate/Managed/Bundles/Objective-C.tmbundle/Support/objc_completion.rb:436:in `pop_up'
from /Users/mac/Library/Application Support/TextMate/Managed/Bundles/Objective-C.tmbundle/Support/objc_completion.rb:787:in `print'