This file contains 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
radiology-diagnostic | |
psychiatry | |
pediatrics | |
anesthesiology | |
orthopaedic-surgery | |
internal-medicine | |
immunology | |
anesthesiology | |
psychiatry | |
pediatrics |
This file contains 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
mkdir ..\bin | |
ren luaconf.h.orig luaconf.h | |
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c | |
ren lua.obj lua.o | |
ren luac.obj luac.o | |
link /DLL /IMPLIB:lua5.2.lib /OUT:..\bin\lua5.2.dll *.obj | |
link /OUT:..\bin\lua.exe lua.o lua5.2.lib |
This file contains 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
--------------------------- | |
-- Default awesome theme -- | |
--------------------------- | |
theme = {} | |
theme.font = "sans 8" | |
theme.bg_normal = "#222222" | |
theme.bg_focus = "#535d6c" |
This file contains 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
alias yaml_pp='ruby -e "require \"json\"; require \"yaml\"; print JSON.parse(STDIN.read).to_yaml"' |
This file contains 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
#!/usr/bin/env ruby | |
require 'benchmark' | |
iterations = 1_000_000 | |
Benchmark.bm do |bm| | |
# joining an array of strings | |
bm.report do | |
iterations.times do | |
["The", "current", "time", "is", Time.now].join(" ") |
This file contains 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
require 'benchmark' | |
n=100000 | |
Benchmark.bm do |benchmark| | |
benchmark.report do | |
a=[]; n.times { a = a + [n] } | |
end | |
benchmark.report do | |
a=[]; n.times { a << n } | |
end |