テルミーの歴史
リードエンジニア @eccyan
✗ LD_LIBRARY_PATH="`llvm-config --libdir`" bundle exec ruby samples/factorial.rb 1 | |
; ModuleID = 'Factorial' | |
define i32 @fac(i32 %n) { | |
entry: | |
%test = icmp eq i32 %n, 1 | |
br i1 %test, label %result, label %recur | |
recur: ; preds = %entry | |
%n-1 = sub i32 %n, 1 |
テルミーの歴史
リードエンジニア @eccyan
$ mysql YOUR_DATABASE -e 'SHOW PROCESSLIST;' | grep -v + | cut -f 3 | cut -d ':' -f 1 | sort | uniq -c |
`deploy:your_task' is only run for servers matching {:roles=>[:role]}, but no servers matched |
class Redis | |
class Client | |
def call(command, &block) | |
master_host = MASTER_HOST_URI | |
slave_host = SLAVE_HOST_URI | |
# Slave に向けたいお好きなコマンドを登録 | |
slave_commands = [:get, :hget, :hgetall] | |
disconnect |
#!/usr/bin/env ruby | |
exit if %w(merge).include? $*[1] | |
current_branch = `git rev-parse --abbrev-ref HEAD` | |
if /^([A-Z]{2,}-\d+).*/ =~ current_branch | |
commit_messages = File.readlines($*[0]) | |
open($*[0], 'w') do |file| | |
commit_messages.unshift "#{$1} " << commit_messages.shift | |
file.puts commit_messages |
require 'worker_base' | |
class Worker < WorkerBase | |
@redis = OTHER_REDIS_HOST | |
# ... | |
end |
#include <SPI.h> | |
const int MINIMUM = 1000; | |
const int X_MINUS_PIN = 7; | |
const int X_PLUS_PIN = 6; | |
const int Y_MINUS_PIN = 5; | |
const int Y_PLUS_PIN = 4; | |
const int Z_MINUS_PIN = 3; | |
const int Z_PLUS_PIN = 2; |
#define BUTTON_PIN 2 | |
#define SPEAKER_PIN 3 | |
#define CONTROLLER_PIN 9 | |
#define FREQUENCY 440 | |
#define DURATION 300 | |
#define COMMAND_LENGTH_MAX 10 | |
char current_command[COMMAND_LENGTH_MAX+1]; | |
int command_index = 0; |
id = 1, | |
name = "eccyan" |