This file contains hidden or 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) { | |
robot.turn(0-robot.angle); | |
robot.ahead(robot.position.y); | |
}; | |
var ori = 1; | |
var cannonRotation = 1; |
This file contains hidden or 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 Robot = function(robot) { | |
robot.turnLeft(robot.angle % 90); | |
robot.turnGunRight(90); | |
robot.clone(); | |
this.direcao = 1; | |
this.encontrado = false; | |
this.numPerda = 0; | |
this.numIdle1 = 0; | |
this.numIdle2 = 0; | |
}; |
This file contains hidden or 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) { | |
var rx = robot.position.x; | |
var ry = robot.position.y; | |
var aH = robot.arenaHeight; | |
var aW = robot.arenaWidth; | |
robot.clone() | |
}; |
This file contains hidden or 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
root@vpauto:/var/www/vpauto# jitsu deploy | |
info: Welcome to Nodejitsu appventus | |
info: jitsu v0.12.11, node v0.8.12 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
warn: There is no package.json file in /var/www/vpauto | |
warn: Creating package.json at /var/www/vpauto/package.json | |
help: | |
help: A package.json stores meta-data about an app | |
help: In order to continue we'll need to gather some information about the app |
This file contains hidden or 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
-rwxrwxrwx 1 nimba nimba 0 May 29 13:54 ??z?@@8?@??@@p??p?????????t???t???? | |
drwxrwxrwx 12 nimba root 4096 May 29 19:34 . | |
drwxr-xr-x 5 root root 4096 May 29 13:51 .. | |
drwxrwxrwx 8 nimba nimba 4096 May 29 13:54 .git | |
-rwxrwxrwx 1 nimba nimba 361 May 29 13:54 .gitignore | |
drwxrwxrwx 8 nimba nimba 4096 May 29 13:54 .travis | |
-rwxrwxrwx 1 nimba nimba 3113 May 29 13:54 .travis.yml | |
-rwxrwxrwx 1 nimba nimba 117 May 29 13:52 Capfile | |
-rwxrwxrwx 1 nimba nimba 3279 May 29 13:54 README.md | |
drwxrwxrwx 4 nimba nimba 4096 May 29 13:54 app |
This file contains hidden or 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
{ | |
"name": "vpauto-server", | |
"subdomain": "vpauto.live", | |
"scripts": { | |
"start": "node app" | |
}, | |
"version": "0.0.24", | |
"engines": { | |
"node": "0.8.x" | |
} |
This file contains hidden or 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
#newBill.html.twig | |
{% extends app.request.isXmlHttpRequest ? '::ajaxLayout.html.twig' : '::frontLayout.html.twig' %} | |
{% block content %} | |
<h1>{{ "bill.new.title"|trans }}</h1> | |
<form action="{{ path('bill_create') }}" method="post" {{ form_enctype(form) }}> | |
{% include 'AppBundle:Bill:form.html.twig' with {'form':form} %} | |
<p> | |
<input type="submit" value="{{ "bill.edit.action.delete"|trans|desc("Supprimer") }}" /> |
This file contains hidden or 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
/** | |
* Give 1 => A | |
* 2 => B | |
* etc | |
**/ | |
public function num2alpha($number) { | |
$number--; | |
$result = ''; | |
for ($i = 1; $number >= 0 && $i < 10; $i++) { |
This file contains hidden or 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
cap prod deploy | |
/var/lib/gems/1.8/gems/sshkit-1.1.0/lib/sshkit.rb:32: undefined method `require_relative' for main:Object (NoMethodError) | |
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' | |
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
from /var/lib/gems/1.8/gems/capistrano-3.0.1/lib/capistrano/all.rb:2 | |
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' | |
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
from /var/lib/gems/1.8/gems/capistrano-3.0.1/bin/cap:2 | |
from /usr/local/bin/cap:19:in `load' | |
from /usr/local/bin/cap:19 |
This file contains hidden or 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
# Easier navigation: .., ..., ...., ....., ~ and - | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ~="cd ~" # `cd` is probably faster to type though | |
alias -- -="cd -" | |
# Shortcuts | |
alias d="cd ~/Dropbox" |
OlderNewer