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.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
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 robots = new Array(); | |
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.start = function( ev ){ |
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
gem 'redcarpet' | |
gem 'pygmentize' |
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
class SimpleController < ApplicationController | |
def index | |
url = 'http://www.lemonde.fr/' | |
result = open(url) | |
render :text => result.read | |
end | |
end |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.13' | |
gem 'thin' | |
gem 'mysql2' | |
gem 'slim' | |
gem 'foreman' | |
# Model easing | |
gem 'active_attr' |
I hereby claim:
- I am awea on github.
- I am awea (https://keybase.io/awea) on keybase.
- I have a public key ASCQZtznj2U4XEW3QGN7QTtWHGViZP0Y_G3GbyILqUFIvgo
To claim this, I am signing this object:
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
version: '3' | |
services: | |
api: | |
image: alterway/php:5.4-apache | |
environment: | |
PHP_php5enmod: 'mysqli' | |
HTTPD_a2enmod: 'rewrite headers' | |
volumes: | |
# ./api contains my PHP application | |
- "./api:/var/www/html" |
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
#!/bin/bash | |
# Script used in combinaison with https://github.com/ianmcgregor/assets-loader | |
# Assign find result to an array see: | |
# https://stackoverflow.com/questions/23356779/how-can-i-store-find-command-result-as-arrays-in-bash/23357277#23357277 | |
assets=() | |
while IFS= read -r -d $'\0'; do | |
# Remove static/ from asset path | |
assets+=("${REPLY//static\//}") |
OlderNewer