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 | |
# coding: utf-8 | |
def check_usage | |
unless ARGV.length == 1 | |
puts "USAGE pomo -b:5min timer start" | |
puts "USAGE pomo -t:25min timer start" | |
puts "USAGE pomo -i:3min timer start" | |
exit | |
end |
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
#!/bin/sh | |
CURDIR=`pwd` | |
java -cp ~/repo/stepcounter/eclipse-plugin/jp.sf.amateras.stepcounter/lib/stepcounter.jar jp.sf.amateras.stepcounter.Main -format=csv -output=${CURDIR}/count.csv -encoding=UTF-8 $@ |
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
#include<iostream> | |
using namespace std; | |
void foo() { | |
cout << "Hello Thread!" << endl; | |
} | |
int main() { | |
foo(); |
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
#include<iostream> | |
#include<unistd.h> | |
#include<thread> | |
using namespace std; | |
void foo() { | |
cout << "Hello Thread!" << endl; | |
sleep(5); | |
} |
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
set: | |
key: 30 | |
val: 40 |
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 | |
# -*- coding: utf-8 -*- | |
require "tk" | |
# http://d.hatena.ne.jp/octech/20080304/1204601383 | |
class TkWindow_Base | |
def initialize() | |
@@wdg_txt = TkText.new().pack | |
@@wdg_txt.insert('end', "Editしてください") | |
@@wdg_txt.state 'disabled' |
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
# -*- coding: utf-8 -*- | |
require 'strscan' | |
class yalmScannerWithComment | |
attr_reader :params | |
def initialize(file_path) | |
@file_path = file_path | |
@params = readParams() | |
end |
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
BEGIN | |
END | |
alias | |
alias_error | |
aref | |
aref_field | |
arg_ambiguous | |
arg_paren | |
args_add | |
args_add_block |
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
-*- mode: compilation; default-directory: "~/repo/ruby-study/lib/ruby_parse/" -*- | |
Compilation started at Sat Mar 1 17:02:08 | |
ruby sexp.rb | |
{:methods=> | |
[{:def=>"method1", | |
:fcalls=> | |
[{"fcall"=>"foo", "params"=>["1", "2", "Hello", "3"]}, | |
{"fcall"=>"bar", "params"=>["1", "2", "Hello", "4"]}]}, | |
{:def=>"method2", |
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
#!ruby | |
class RspecKickStarter | |
attr_accessor :file_name, :temp_path_utf8 | |
def initialize(file_path) | |
@file_path = file_path | |
@file_name = File.basename(file_path) | |
@temp_file_utf8 = "temp_" + @file_name | |
@temp_path_utf8 = "lib/" + @temp_file_utf8 |
OlderNewer