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
####################### | |
# start: git in prompt | |
####################### | |
# allow use of __git_ps1 | |
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh | |
# enable git unstaged indicators - set to a non-empty value | |
GIT_PS1_SHOWDIRTYSTATE="." |
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 https://code.visualstudio.com/docs/cpp/config-clang-mac | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "create build directory", | |
"type": "shell", | |
"command": "mkdir -p ${workspaceFolder}/build/", | |
"group": "build" | |
}, |
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
/script SetMapToCurrentZone() | |
/script map=C_Map.GetBestMapForUnit("player") | |
/script pos=C_Map.GetPlayerMapPosition(map, "player") | |
/script x,y=pos:GetXY() | |
/script DEFAULT_CHAT_FRAME:AddMessage(string.format("%s [ %.1f, %.1f ]",GetZoneText(),x*100,y*100)) |
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
tell application "System Preferences" | |
quit | |
delay 1 | |
end tell | |
tell application "System Preferences" | |
activate | |
set the current pane to pane id "com.apple.preference.notifications" | |
reveal pane id "com.apple.preference.notifications" | |
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 | |
USAGE="Usage: cherrypick <path_to_repo> <commit_hash>" | |
if [ -z $1 ] || [ -z $2 ] # length of string = 0? | |
then | |
echo $USAGE | |
else | |
# The git format-patch command creates a patch from path_to_repo's | |
# commit specified by its SHA (-1 for one single commit alone). |
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
var term = require('hypernal')() | |
var tablify = require('tablify').tablify | |
var request = require('browser-request') | |
var url = require('url') | |
term.appendTo(document.body) | |
// style fake terminal | |
var termEl = term.term.element | |
termEl.style['font'] = '13px Monaco, mono' |
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() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var _ = require('lodash'); | |
document.write(JSON.stringify(_.extend({}, {'test': 'hi'}, {'test': 'yo'}))); |
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
####################### | |
# start: git in prompt | |
####################### | |
# allow use of __git_ps1 | |
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh | |
# enable git unstaged indicators - set to a non-empty value | |
GIT_PS1_SHOWDIRTYSTATE="." |