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
<?php | |
echo "aaa"; | |
echo PHP_EOL; | |
$cmd = 'find . -type f -name "*.txt" | xargs fgrep "Aki_Komo"'; | |
$grep = exec($cmd); | |
$grep = preg_replace('/[^0-9]/', '', $grep); | |
echo $grep; | |
echo PHP_EOL; | |
?> |
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
[vagrant@localhost ~]$ cd vim/src | |
[vagrant@localhost src]$ make | |
Makefile:304: auto/config.mk: No such file or directory | |
rm -f auto/config.cache | |
if test "X" != "Xclean" \ | |
-a "X" != "Xdistclean" \ | |
-a "X" != "Xautoconf" \ | |
-a "X" != "Xreconfig"; then \ | |
GUI_INC_LOC="" GUI_LIB_LOC="" \ | |
CC="" CPPFLAGS="" CFLAGS="" \ |
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
input = ARGV[0].to_i | |
underTwenty = %w(zero one two tree four five six seven eight nighn ten eleven tweleve thirteen fourteen fifteen sixteen seventeen eighteen nineteen) | |
overTwenty = %w(twenty thirty forty fifty sixty seventy eighty ninty) | |
hundred = "hundred" | |
thousand = "thousand" | |
if input <= 19 then | |
puts underTwenty[input] | |
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
class Amida | |
def amida_def() | |
base1 = "| " | |
base2 = "|---" | |
base3 = "" | |
y="|" | |
records = Array.new(5,base1) | |
flg = 0 | |
records.each do |elem| | |
x1 = rand(2) |
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
for i in 1..100 | |
fizz = i % 3 | |
buzz = i % 5 | |
if fizz == 0 and buzz == 0 then | |
puts "fizzbuzz" | |
elsif fizz == 0 then | |
puts "fizz" | |
elsif buzz == 0 then | |
puts "buzz" |