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
# Always create a new session. If there's no session running when doing | |
# "attach" this will automatically create one for us. | |
new-session -s default | |
# This disables the output of the source command on startup. | |
set quiet on | |
# Start the powerline daemon if not already started. | |
run-shell "powerline-daemon -q" |
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
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Atom starts up and is reloaded automatically | |
* when it is changed. | |
* | |
* If you are unfamiliar with LESS, you can read more about it here: | |
* http://www.lesscss.org | |
*/ |
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
'*': | |
'editor': | |
'fontFamily': 'Droid Sans Mono' | |
'fontSize': 13 | |
'autoIndentOnPaste': false | |
'tabLength': 4 | |
'softTabs': false | |
'invisibles': {} | |
'core': | |
'themes': [ |
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
var END_OF_WORLD = 'undefined'; | |
function nextNumber(n) { | |
return n + 1; | |
} | |
function numbers(base) { | |
var n = base; | |
return function() { | |
return (n = nextNumber(n)); |
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
{ | |
"cursor_size": "small", | |
"font_face": "Consolas", | |
"font_size": "0x16", | |
"popup_colors": "dark_magenta,white", | |
"dark_gray": "#808080", | |
"screen_colors": "gray,black", | |
"dark_green": "#008000", | |
"window_size": "95x27", | |
"font_weight": 700, |
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
1 # SDK tools | |
2 export PATH=$PATH:$ANDROID_SDK_ROOT/tools | |
3 export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools | |
4 | |
5 # Other tools | |
6 export PATH=$PATH:$ANDROID_SDK_HOME/repo/bin | |
7 export PATH=$PATH:$ANDROID_SDK_HOME/gradle/bin | |
8 | |
9 adb_pull_with_basename() { | |
10 adb pull "$1" "$2/$(basename $1)" |
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/sh | |
SERVICE="Ethernet" # or "Wi-Fi" | |
PROXY_HOST="127.0.0.1" | |
PROXY_PORT="8888" | |
while [[ $# > 0 ]] | |
do | |
case "$1" in | |
on) |
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
// WWDC 2012 | |
jQuery("a:contains('HD')").each(function(n){ console.log(jQuery(this).attr("href") ) }) | |
// WWDC 2013/2014 | |
jQuery("a:contains('HD')").each(function(n){ console.log(jQuery(this).attr("href") + "?dl=1" ) }) |
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
#if UNITY_EDITOR | |
using System; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.XcodeNew; | |
public class PostBuild { |
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)layoutBounceBackground { | |
// Change position and height of the bounce background view in order to cover the scroll view | |
// bounce area. This is necessary because of UITableView glitches in section and row animations | |
// during which you can see its (white) background in the middle of the table (with dark cells). | |
CGFloat contentHeight = self.tableView.contentSize.height; | |
CGFloat contentOffsetY = self.tableView.contentOffset.y; | |
CGFloat height = self.tableView.frame.size.height; | |
if (contentOffsetY >= 0 && contentOffsetY <= contentHeight - height) { |