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
y = int(input("Please input year: ")) | |
m = int(input("Please input month: ")) | |
d = int(input("Please input day: ")) | |
step1 = y + (y // 4) | |
step2 = step1 - (y // 100) | |
step3 = step2 + (y // 400) | |
step4 = (m * 13 + 8) // 5 | |
step5 = step3 + step4 | |
step6 = step5 + d |
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
### .gitignore setting for Rails project with RubyMine | |
*.rbc | |
capybara-*.html | |
.rspec | |
/log | |
/tmp | |
/db/*.sqlite3* | |
/public/system | |
/coverage/ |
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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
import random | |
import csv | |
group_list = [] | |
members = {} |
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
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb | |
index f8f25be..80884c6 100644 | |
--- a/app/views/gantts/show.html.erb | |
+++ b/app/views/gantts/show.html.erb | |
@@ -76,12 +76,17 @@ | |
headers_height = header_height | |
show_weeks = false | |
+ show_week_day_top = false | |
show_days = false |
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
package jp.hatak.twitterbot.util; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterException; | |
import twitter4j.TwitterFactory; | |
import twitter4j.auth.AccessToken; | |
import twitter4j.auth.RequestToken; |
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 python | |
import argparse | |
import json | |
import urllib2 | |
import sys | |
EXIT_CODE = ('OK', 'WARNING', 'CRITICAL', 'UNKNOWN') | |
GH_API_ROOT='https://status.github.com/api.json' | |
GH_STATUS = ('good', 'minor', 'major') |
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 python | |
import argparse | |
import json | |
import urllib2 | |
import sys | |
EXIT_CODE = ('OK', 'WARNING', 'CRITICAL', 'UNKNOWN') | |
GH_API_ROOT='https://status.github.com/api.json' | |
GH_STATUS = ('good', 'minor', 'major') |
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 python | |
import argparse | |
import json | |
import urllib2 | |
import sys | |
EXIT_CODE = ('OK', 'WARNING', 'CRITICAL', 'UNKNOWN') | |
GH_API_ROOT='https://status.github.com/api.json' | |
GH_STATUS = ('good', 'minor', 'major') |
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/bash | |
sed -i -r 's/# (force_color_prompt=yes)/\1/g' ~/.bashrc | |
HOSTNAME=`gawk -F. '{print $1"."$2}' /etc/hostname` | |
sed -i -r "s/\\\u@.+(\\\[\\\033\[00m\\\])?\:/\\\u@${HOSTNAME}\1\:/g" ~/.bashrc | |
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 | |
PERL_STABLE="5.16.1" | |
PROJECT_ROOT=`pwd` | |
export PERLBREW_ROOT="${PROJECT_ROOT}/perl5" | |
echo | |
echo "#### Setup perl-${PERL_STABLE} into ${PERLBREW_ROOT}" | |
echo |
NewerOlder