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
set nocompatible | |
syntax on | |
set nu ts=2 sw=2 bs=2 hidden | |
set hlsearch incsearch expandtab | |
set mouse=a | |
filetype indent on | |
call pathogen#infect() |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
function randomMove(robot) { | |
var move = (Math.random()*10).toFixed() > 5 ? | |
"ahead" : "back"; | |
robot.turn(90); |
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 RobotState = function () { | |
data = {}; | |
data.isLookingAtTarget = false; | |
return data; | |
}; | |
var goodRobot = RobotState(); | |
var evilRobot = RobotState(); |
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 RobotState = function () { | |
data = {}; | |
data.isLookingAtTarget = false; | |
return data; | |
}; | |
var goodRobot = RobotState(); | |
var evilRobot = RobotState(); |
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 pessoa = function (nome, sobrenome) { | |
var obj = {}; | |
obj.getNome = function () { | |
return nome; | |
}; | |
obj.getSobrenome = function () { | |
return sobrenome; |
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
Exception happened during processing of request from ('127.0.0.1', 60431) | |
Traceback (most recent call last): | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 593, in process_request_thread | |
self.finish_request(request, client_address) | |
File "/Users/ddornell/Work/pixelated/pixelated-user-agent/service/.virtualenv/lib/python2.7/site-packages/protobuf.socketrpc-1.3.2-py2.7.egg/protobuf/socketrpc/server.py", line 243, in finish_request | |
request, client_address, self, self.socket_rpc_server) | |
File "/Users/ddornell/Work/pixelated/pixelated-user-agent/service/.virtualenv/lib/python2.7/site-packages/protobuf.socketrpc-1.3.2-py2.7.egg/protobuf/socketrpc/server.py", line 83, in __init__ | |
self, request, client_address, server) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 649, in __init__ | |
self.handle() |
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 | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
function git_execute_r { | |
for dir in `ls -l1d */.git`; do | |
pushd `dirname $dir` >/dev/null | |
printf "${GREEN} :: @ `pwd`\n${NC}" | |
git $@ | |
popd >/dev/null |
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
def getResolvedVersionOf(dependency) { | |
return configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.asList().collectAll { e -> | |
if (e.moduleName == dependency) { | |
return e | |
} | |
}[0].moduleVersion | |
} |
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
javascript:(function(){ | |
setInterval(function(){ | |
document.getElementsByClassName('view-root')[0].style['height'] = '100%'; | |
document.getElementById('FIFAHeader').style['display'] = 'none'; | |
document.querySelector('.layout-hub') && (document.querySelector('.layout-hub').style['padding']=0); | |
document.querySelector('.ut-content') && (document.querySelector('.ut-content').style['border']='1px') | |
&& (document.querySelector('.ut-content').style['max-height'] = '100%') | |
&& (document.querySelector('.ut-content').style['max-width'] = '90%'); | |
document.querySelector('#ut-search-wrapper .ut-content-container') && (document.querySelector('#ut-search-wrapper .ut-content-container').style['padding'] = '0px') | |
},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
#!/bin/bash | |
GH_API=https://api.github.com | |
gh_get() { | |
curl \ | |
-H "Accept: application/vnd.github+json" -H "Authorization: token $GITHUB_ACCESS_TOKEN" \ | |
$1 | |
} |