Skip to content

Instantly share code, notes, and snippets.

View lenybernard's full-sized avatar
🇨🇵

Leny BERNARD lenybernard

🇨🇵
View GitHub Profile
#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") }}" />
{
"name": "vpauto-server",
"subdomain": "vpauto.live",
"scripts": {
"start": "node app"
},
"version": "0.0.24",
"engines": {
"node": "0.8.x"
}
-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
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
@lenybernard
lenybernard / robot.js
Created December 8, 2012 15:44
Russian style
//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()
};
@lenybernard
lenybernard / robot.js
Created December 8, 2012 15:40
Silent killbot
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;
};
@lenybernard
lenybernard / robot.js
Created December 8, 2012 14:41
Aeden-unkeepable
//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;