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 depth = 1; | |
var br = '<br />'; | |
var target = document; | |
$.each(Object.keys(target), function(K1, V1) { | |
document.write('"' + V1 + '" : "' + target[V1] + '" [' + (typeof target[V1]) + ']' + br); | |
/* | |
if(((typeof target[V1]) == 'object') && target != target[V1]) { | |
var target2 = target[V1]; | |
$.each(Object.keys(target2), function(K2, V2) { | |
console.log(K1 + '.' + K2 + ': "' + V2 + '" -> "' + target2[V2] + '"'); |
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 excluded = [document]; | |
var listPropertiesOf = function(object, maxDepth) { | |
return listPropertiesOfWDepth(object, 0, maxDepth); | |
}; | |
var listPropertiesOfWDepth = function(object, curDepth, maxDepth) { | |
if(object == null) { | |
return 'null'; | |
} | |
/* | |
console.log("listProperties called w/" + object + ', ' + curDepth + ', ' + maxDepth) |
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
From 7e766f1c57b46aa492eee5e2113d04cc98a444ce Mon Sep 17 00:00:00 2001 | |
From: Geoff Yoerger <[email protected]> | |
Date: Sun, 27 Jul 2014 00:10:35 -0500 | |
Subject: [PATCH] Fix compilation errors | |
--- | |
libgrive/src/drive/State.cc | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/libgrive/src/drive/State.cc b/libgrive/src/drive/State.cc |
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
export PS1="\\[$(tput setab 4)$(tput setaf 1)\\]"'{\w}'"\\[$(tput sgr0)"'$(~/etc/ps1_exitstatus $?)'"$(tput bold)\\]"'\$'"\\[$(tput sgr0)\\] " | |
export PS2="\\[$(tput setab 4)$(tput setaf 1)\\]"'>'"\\[$(tput sgr0)\\]" |
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 setField = function(fieldName, setValue) { | |
document.getElementsByName(fieldName).item(0).value = setValue; | |
}; | |
setField('web_auth_user[username]', 'xxx'); | |
setField('web_auth_user[password]', 'xxx'); | |
var inputs = document.getElementsByTagName('input'); | |
var submitButton = inputs.item(inputs.length - 1); | |
submitButton.click() |
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 [[ "$1" == "0" ]]; | |
then echo -n $(tput setaf 2); | |
else echo -n $(tput setaf 1); | |
fi |
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 fileref = document.createElement('script'); | |
fileref.setAttribute("type","text/javascript"); | |
fileref.setAttribute("src", "//cdn.jsdelivr.net/vivus/0.1.2/vivus.min.js"); | |
document.getElementsByTagName("head")[0].appendChild(fileref); | |
function animSVG(svgid) { | |
new Vivus(svgid, {type: 'oneByOne', start: 'autostart', duration: 200}); | |
} |
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
ScrapTF.Raffles.Pagination.LoadNext(); | |
ScrapTF.Raffles.Pagination.LoadNext(); | |
ScrapTF.Raffles.Pagination.LoadNext(); | |
var i = 0; | |
var list; | |
setTimeout(function() { | |
list = document.getElementById("raffles-list").children; | |
list = [].filter.call(list, function(j) { | |
if (j.getAttribute("style") == "") { |
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
CC := g++ | |
SRCDIR := src | |
BINDIR := bin | |
SRCEXT := cpp | |
SOURCES := $(shell find $(SRCDIR) -type f -name *.$(SRCEXT)) | |
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.exe)) | |
CFLAGS := -g # -Wall | |
$(BINDIR)/%.exe: $(SRCDIR)/%.$(SRCEXT) |
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
[core] | |
pager = less -x4 | |
excludesfile = $HOME/.gitignore_global | |
editor = /usr/bin/vim | |
[help] | |
autocorrect = 1 | |
[color] | |
branch = auto | |
diff = auto | |
status = auto |
OlderNewer