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
Show hidden characters
[ | |
{ "keys": ["ctrl+shift+a"], "command": "prompt_add_folder" } | |
] |
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 | |
# Requirements: sed, grep, curl, pkill | |
# User configuration | |
LOCAL_INSTALL="/usr/lib/sublime-text-2" # Must be user-writable | |
REPO="dev" # "dev" for dev releases, or "2" for beta releases | |
TARGET_BUILD="Linux 32 bit" # can be one of "Windows", "Windows 64 bit", "OS X", "Linux 32 bit", "Linux 64 bit" | |
# Check if sublime text is running |
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
<script type="text/javascript"> | |
window.addEventListener("DOMContentLoaded", function(){ | |
jQuery(".upme-main").each(function(){ | |
jQuery(this).appendTo(jQuery(this).previousSibling()); | |
}); | |
}); | |
</script> |
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 Map = function(){} | |
/** | |
* Calculate the Lat/Lng centerpoint of several Google Maps markers | |
* Based on: https://gist.github.com/amites/3718961 | |
* @param {array} latlngpoints | |
* @return {Object} | |
*/ | |
Map.prototype.calculateCenterPoint = function(latlngpoints){ | |
var x = 0, |
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
open_files(){/path/to/sublime_open_files_in_new_window.rb ${@}} | |
# Usage | |
open_files test.rb main.c load.php |
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
# Really simple wrappers for running PHPUnit and testing your app's endpoints | |
# Usage | |
# run_phpunit Path/To/Bundle | |
run_phpunit(){ | |
local bundle=$1 | |
local config="app/phpunit.xml.dist" | |
if [ -f $config ] | |
then |
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
title: Derping | |
body: This is the body | |
parent: nil |
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
require 'evertils/common' | |
# create new folder structure | |
stack = Evertils::Common::Entity::Stack.new | |
stack.create_from_yml('./stack.yml') |
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 | |
require 'notifaction' | |
require 'pathname' | |
def update(path) | |
Dir.chdir(path) | |
print_successes = false | |
resp = `git status -s`.size |
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
#!/home/git/.rvm/rubies/ruby-2.3.0/bin/ruby | |
puts "Hello world!" | |
# 1. Read STDIN (Format: "from_commit to_commit branch_name") | |
from, to, branch = ARGF.read.split " " | |
# 2. Only deploy if master branch was pushed | |
if (branch =~ /master$/) == nil | |
puts "Received branch #{branch}, not deploying." |
OlderNewer