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 -*- | |
import argparse | |
import datetime | |
def main(start, end): | |
start = datetime.datetime.strptime(start, '%Y%m%d') | |
end = datetime.datetime.strptime(end, '%Y%m%d') | |
current = start | |
while current <= 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
# -*- coding: utf-8 -*- | |
import argparse | |
import collections | |
import json | |
def get_name(ins): | |
for t in ins['Tags']: | |
if t['Key'] == 'Name': | |
return t['Value'] |
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 -*- | |
import pygal | |
from flask import Flask, Response | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): |
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 -*- | |
from linesman.middleware import make_linesman_middleware | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/hello') | |
def hello(): |
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
http://livedoor.blogimg.jp/nwknews/imgs/b/5/b5ef5155-s.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/a/0/a054fbf9.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/a/9/a9814f4e-s.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/1/7/175abacd.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/6/1/612dc386-s.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/5/a/5a468fce.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/5/5/55902e8c.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/d/0/d088f41e.png | |
http://livedoor.blogimg.jp/nwknews/imgs/9/2/92b6b2e5.jpg | |
http://livedoor.blogimg.jp/nwknews/imgs/e/5/e50a6c31.jpg |
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
(function(authToken){ | |
var containerClsName = 'batch_due_action_container'; | |
var initialize = function() { | |
$('.' + containerClsName).remove(); | |
$('.list').each(function(){ | |
var $list = $(this); | |
var $form = $('<form class="' + containerClsName + '">') | |
.appendTo($list.find('.list-header')); |
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
<script src="//cdn.ravenjs.com/1.1.15/jquery,native/raven.min.js"></script> | |
<script> | |
Raven.config('https://<key>@app.getsentry.com/<id>').install(); | |
</script> |
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
Error: [ng:areq] Argument 'fn' is not a function, got $HttpProvider | |
http://errors.angularjs.org/1.3.0-beta.7/ng/areq?p0=fn&p1=not%20a%20function%2C%20got%20%24HttpProvider |
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
source 'https://rubygems.org' | |
gem 'serverspec' | |
gem 'rake' |
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 -*- | |
import json | |
import boto | |
import boto.beanstalk | |
import boto.ec2 | |
from fabric.api import task, puts | |
# Elastic Beanstalk の Applicaton 名 | |
EB_APP_NAME = 'example-app' | |
# Elastic Beanstalk の リージョン名 |
NewerOlder