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
hoge^C{"s":"hogehoge"}^Bfoo^C{"s":"fooou"} |
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
from django import template | |
register = template.Library() | |
def get_dict_val(var,args): | |
dict_val = var | |
keys = [arg.strip() for arg in args.split(',')] | |
for key in keys: | |
dict_val = dict_val[key] | |
return dict_val | |
register.filter('dict_val',get_dict_val) |
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
$ docker rmi <イメージ名> |
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
list = [1,3,2,4] | |
list.sort() | |
print(list) | |
# [1, 2, 3, 4] |
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
FATAL: (CommandError) failed: "env RBENV_ROOT\\=\\$HOME/.rbenv RBENV_VERSION\\=2.1.5 \\$HOME/.rbenv/bin/rbenv versions --bare" | |
org.jruby.exceptions.RaiseException: (CommandError) failed: "env RBENV_ROOT\\=\\$HOME/.rbenv RBENV_VERSION\\=2.1.5 \\$HOME/.rbenv/bin/rbenv versions --bare" |
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
[vagrant@postgresql-server ~]$ sudo su - postgres | |
-bash-4.1$ psql -l | |
List of databases | |
Name | Owner | Encoding | Collation | Ctype | Access privileges | |
------------+----------+----------+-------------+-------------+------------------------------- | |
ansible-db | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres | |
: postgres=CTc/postgres | |
: "sample-ansible"=CTc/postgres | |
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres |
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
{ | |
"Tokyo" : [ | |
{ | |
"date" : "2015-05-29", | |
"max" : 24, | |
"min" : 21 | |
}, | |
{ | |
"date" : "2015-05-30", | |
"max" : 30, |
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
{ | |
"0-19": { | |
"male" : 1420000, | |
"female": 1060000, | |
"avg" : 1260000 | |
}, | |
"20-24": { | |
"male" : 2650000, | |
"female": 2260000, | |
"avg" : 2460000 |
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
from selenium import webdriver | |
# driverの指定 | |
driver = webdriver.PhantomJS() | |
driver.set_window_size(1024, 768) | |
driver.get('https://google.com/') | |
# キャプチャ | |
driver.save_screenshot('google.png') |
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
$ gem install travis |
OlderNewer