- gemfileの作成
- $ bundle install --path vendor/bundle
- $ bundle exec rails new example --skip-bundle
- $ bundle install --path vendor/bundle
- $ bundle exec rails server
hogehoge |
#include<iostream> | |
#include<cmath> | |
using namespace std; | |
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0])) | |
/* | |
* forループで配列内の最大値を返す | |
*/ |
hogehoge | |
git-vim test | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
struct listNode { | |
int data; | |
listNode * next; | |
}; typedef listNode * listPtr; |
App.directive(directiveName, function($document, $parse) { | |
return { | |
restrict : 'A', | |
link : function($scope, $element, $attr) { | |
var fn = $parse($attr[e.name]); | |
$element.on(jQueryUIEventName, function(event, ui) { | |
$scope.$apply(function(){ | |
//processing of any |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
struct ListNode { | |
int data; | |
ListNode * next; | |
}; typedef ListNode * ListPtr; |
class Player | |
def play_turn(warrior) | |
# initialize health and map | |
if @health == nil then | |
@health = warrior.health | |
end | |
if @map == nil then | |
@map = {0 => 'E'} | |
@map_index = 0 |
class Player | |
def play_turn(warrior) | |
# initialize health and map | |
if @health == nil then | |
@health = warrior.health | |
end | |
if @map == nil then | |
@map = {0 => 'E'} | |
@map_index = 0 |
class Player | |
def play_turn(warrior) | |
warrior.walk! | |
end | |
end | |