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
Feature: Basic communication | |
Background: | |
Given mimibot logs into Twitter as "mickey24_bot" | |
Scenario: No reaction if no mention | |
Given there's no mention to mimibot on Twitter | |
When mimibot runs | |
Then mimibot gets mentions from Twitter | |
And mimibot does nothing |
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
" $HOME/.vimrc | |
" MyAutoCmd : an augroup for my autocmd {{{1 | |
augroup MyAutoCmd | |
autocmd! | |
augroup END | |
" Encoding {{{1 | |
scriptencoding utf-8 | |
set 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
# -*- coding: utf-8 -*- | |
require "open-uri" | |
require "json" | |
require "pp" | |
### | |
# loading bullet | |
### |
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 "time" | |
puts %w[datetime mon day hour min place gamma neutron wind_dir wind_speed].join("\t") | |
lines = ARGF.each_line.to_a[2..-1] | |
date = "" | |
lines.each do |line| |
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 "net/http" | |
require "cgi" | |
require "nkf" | |
require "json" | |
class Bitly | |
def initialize(account, api_key) |
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 -*- | |
i = 0 | |
ARGF.each_char do |c| | |
printf "\x1b[3#{(i += 1) % 6 + 1}m#{c}" | |
end | |
print "\x1b[39m" |
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
str = "str = %c%s%c; printf str, 34, str, 34"; printf str, 34, str, 34 |
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
eval$s =%w' | |
b= " BAhsKwG | |
vfg A AAAAA PAAA | |
AIw AA AAA gD8AAAA4 | |
AQA AA Ph 4AAAAcAMAA | |
ICDf wA A AOAGAADA8D8 | |
AAAD wB g AAQPwfAAAA | |
eAY AA E D/AwAAA | |
DgGA AB A fwAAAAA | |
8DAAA QH 8 AAA AAf |
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> | |
// change this parameter according to the length of your program | |
#define BOOST_MPL_LIMIT_STRING_SIZE 128 | |
#include <boost/mpl/at.hpp> | |
#include <boost/mpl/comparison.hpp> | |
#include <boost/mpl/erase.hpp> | |
#include <boost/mpl/equal.hpp> | |
#include <boost/mpl/insert.hpp> |
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 <string> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <algorithm> | |
#include <vector> | |
using namespace std; | |
// 遺伝子発現領域データ用構造体 |
NewerOlder