git pull git push origin master:refs/heads/new_branch git co -b new_branch --track origin/new_branch
git push origin localbranch:remotebranch
git push origin :remote_branch_name
default: -r features/support/env.rb -r features/support/plain.rb -r features/step_definitions features/plain --format progress features --tags ~@pending | |
selenium: -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced features/plain --format progress features --tags ~@pending |
function precmd() { | |
echo -ne "\033]2;${PWD##*/}\a" # set window title to the current folder | |
return | |
} | |
function preexec() { | |
if [ "$1" = "rs" ]; then | |
echo -ne "\033]6;1;bg;red;brightness;180\a" | |
echo -ne "\033]6;1;bg;green;brightness;205\a" | |
echo -ne "\033]6;1;bg;blue;brightness;90\a" |
export S3_ENABLED=true | |
export THIS_THING="asdf" |
OldHttpRequest = Turbolinks.HttpRequest | |
class Turbolinks.CachedHttpRequest extends Turbolinks.HttpRequest | |
constructor: (_, location, referrer) -> | |
super(this, location, referrer) | |
requestCompletedWithResponse: (response, redirectedToLocation) -> | |
@response = response | |
@redirect = redirectedToLocation | |
class InventoryItem < ActiveRecord::Base | |
def self.update_kit_ids | |
search = NetSuite::Records::InventoryItem.search({ | |
criteria: { | |
basic: [ | |
{ | |
field: 'type', | |
operator: 'anyOf', | |
type: 'SearchEnumMultiSelectField', |
/* | |
Turbolinks 5.0.0.beta4 | |
Copyright © 2016 Basecamp, LLC | |
*/ | |
; | |
(function() { | |
this.Turbolinks = { | |
supported: (function() { | |
return (window.history.pushState != null) && (window.requestAnimationFrame != null); |
require 'geokit' | |
module Geokit | |
module IpGeocodeLookup | |
# Overriding this to only store for 2 hours instead of 30 days | |
def store_ip_location | |
return if params[:lat] && params[:lng] | |
unless session[:geo_location] |
def parse_stuff | |
geoloc = Geokit::Geocoders::GoogleGeocoder3.geocode address.gsub("\n", ", ") | |
placemark = JSON.parse(geoloc.to_json) | |
# Sometimes the most accurate entry doesn't have a city, but a less accurate version does | |
if city.blank? && region.present? && geoloc.respond_to?(:all) | |
placemark["city"] = geoloc.all.detect(&:city).try(&:city) | |
end | |
end |
I hereby claim:
To claim this, I am signing this object: