854941f58ddf202ef0d90334ca94f65309db211
MRuby::Build.new do |conf|
# load specific toolchain settings
toolchain :gcc
conf.gem :github => 'mattn/mruby-uv'
# 以下の記載を MRuby::Build.new のブロック内に記載する | |
conf.gem 'mrbgems/mruby-bin-hoge' #=> mrbgems下にあるとした場合の指定の仕方 |
mrb_value | |
mrb_data_data(mrb_state *mrb, mrb_value self) | |
{ | |
mrb_value v; | |
v = mrb_iv_get(mrb, self, mrb_intern_lit(mrb, "@data")); | |
if(mrb_nil_p(v)) { | |
mrb_iv_set(mrb, self, mrb_intern_lit(mrb, "@data"), mrb_ary_new(mrb)); | |
v = mrb_iv_get(mrb, self, mrb_intern_lit(mrb, "@data")); | |
} | |
return v; |
class TestCase | |
class << self | |
def set_params(*methods) | |
methods.each do |m| | |
define_method(m, ->(d = nil) { | |
instance_variable_set("@#{m}".to_sym, d) if d | |
instance_variable_get("@#{m}".to_sym) | |
}) | |
end | |
end |
lass Time | |
def datetime | |
y = self.year | |
m = self.month | |
d = self.day | |
"%04d-%02d-%02d" % [y, m, d] | |
end | |
end | |
class Modifier |
package main | |
import "fmt" | |
func tap(v []int) []int { | |
fmt.Println(v) | |
return v | |
} | |
func main() { |
KERNEL=kernel7 && \ | |
remote=pi@192.168.0.10 && \ | |
rpass=raspberry && \ | |
rhome=/home/pi && \ | |
echo $KERNEL && \ | |
echo "make 1" && \ | |
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig && \ | |
echo "make 2" && \ | |
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs && \ | |
echo "del tmp" && \ |
package main | |
import ( | |
"fmt" | |
"os/exec" | |
"strings" | |
) | |
func splitKeyValue(environment string) (key, value string) { | |
e := strings.Split(environment, "=") |
scriptencoding utf-8 | |
" vim-plug {{{ | |
call plug#begin('~/vimfiles/plugged') | |
" Plug 'pocke/iro.vim' | |
Plug 'OmniSharp/omnisharp-vim' | |
Plug 'mattn/vim-filewatcher' | |
Plug 'haya14busa/vim-asterisk' | |
Plug 'twitvim/twitvim' |
Title: | |
Test001 | |
TestSuite: | |
Suite001/SubSuite001 | |
Summary: | | |
This is summary | |
Preconditions: | |