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
[diff] | |
tool = custom | |
[merge] | |
tool = custom | |
[mergetool "custom"] | |
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$PWD/$BASE\"" "\"$PWD/$REMOTE\"" "\"$PWD/$LOCAL\"" "\"$PWD/$MERGED\"" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false |
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
define([ | |
"../core", | |
"../queue", | |
"../effects" // Delay is optional because of this dependency | |
], function( jQuery ) { | |
// Based off of the plugin by Clint Helfers, with permission. | |
// http://blindsignals.com/index.php/2009/07/jquery-delay/ | |
jQuery.fn.delay = function( time, type ) { | |
time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; |
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 b='';function foo(a){if(a){b+=a+' ';return foo}else{console.log(b)}};foo("lol")("wat")("bar")(); |
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
$(".hdr-container, h2, h1, .offer-type, label").hide(); $("textarea").attr('rows',2); | |
function focus(){ | |
$("#domain").focus(); | |
} | |
$('form').off('submit',focus).on('submit',focus); | |
'' |
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
group :www do | |
guard :compass, :configuration_file => www, :compile_on_start => true do | |
watch(%r{www\/gui\/sass\/.*\.sass$}) | |
end | |
guard :livereload do | |
watch(%r{www\/gui\/build\/js\/.+\.(js)$}) | |
watch(%r{www\/gui\/build\/css\/.+\.(css)$}) | |
end |
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
/includes/template/implementation.php | |
/includes/template/tests/<RMN-NUM>/implementation.php | |
/includes/template/tests/<RMN-NUM>/offer.php | |
/www/gui/scripts/tests/<RMN-NUM>/override.js |
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
func enumerate(x interface{}) { | |
val := reflect.ValueOf(x).Elem() | |
i := 0 | |
for { | |
if(i >= val.NumField()){ | |
break | |
} | |
//valueField := val.Field(i) | |
typeField := val.Type().Field(i) |
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
<div>{{titleExpand .Title}}</div> |
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
package main | |
import "fmt" | |
type Car struct { | |
wheelCount int | |
} | |
// define a behavior for Car | |
func (car Car) numberOfWheels() int { |
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 base = 'http://m.retailmenot.test'; | |
var url = base + '/view/macys.com'; | |
function getCookie (page, name) { | |
var cookies = page.cookies; | |
var val; | |
cookies.forEach(function (cookie) { | |
if (cookie.name === name) { | |
val = cookie.value; | |
} |