This file contains hidden or 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
| and | |
| del | |
| from | |
| not | |
| while | |
| as | |
| elif | |
| global | |
| or | |
| with |
This file contains hidden or 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/python2.7 | |
| # coding: utf-8 | |
| # ref: http://unixhelp.ed.ac.uk/CGI/man-cgi?xargs | |
| """ | |
| create .bat file below as xargs.bat and run this script | |
| @echo off | |
| C:\Python27\python.exe %~dp0xargs.py %* |
This file contains hidden or 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/python3.4 | |
| import requests | |
| name='*your username*' | |
| pwd='*your password*' | |
| s = requests.session() | |
| data = { | |
| 'name': name, |
This file contains hidden or 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 | |
| # easy task scheduler | |
| # | |
| # 1. mkdir taskscheduler/app/bin/cal/log | |
| # taskscheduler | |
| # ├── app (775) | |
| # │.. ├── renkei_0001.sh | |
| # │.. └── renkei_0002.sh | |
| # ├── bin (775) |
This file contains hidden or 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
| // ==UserScript== | |
| // @name ScriptEuler | |
| // @namespace http://d.hatena.ne.jp/yatt/ | |
| // @description link euler project problem to http://odz.sakura.ne.jp/ | |
| // @include https://projecteuler.net/archives* | |
| // ==/UserScript== | |
| (function(){ | |
| var lst = document.getElementsByClassName('id_column') | |
| var prefix = 'http://odz.sakura.ne.jp/projecteuler/index.php?cmd=read&page=Problem%20' |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>ANA Season Clendar</title> | |
| <!-- ref: http://shanabrian.com/web/javascript/date04.php | |
| --> | |
| <!-- CSS --> | |
| <link href="fullcalendar-2.3.1/fullcalendar.min.css" rel="stylesheet" type="text/css"> |
This file contains hidden or 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
| import collections | |
| import re | |
| import sys | |
| import warnings | |
| from bs4.dammit import EntitySubstitution | |
| DEFAULT_OUTPUT_ENCODING = "utf-8" | |
| PY3K = (sys.version_info[0] > 2) | |
| whitespace_re = re.compile("\s+") |
This file contains hidden or 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/python2.7 | |
| # coding: utf-8 | |
| """ | |
| stdinの内容をGMailで | |
| 自分自身に送る | |
| """ | |
| import smtplib |
This file contains hidden or 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
| chrome.extension.sendMessage({message:'snaplinksInit'}, function(ret){ | |
| visibleOnly = ret.visibleOnly; | |
| button = ret.button; | |
| // 2014/04/21 設定が反映されないのでソースを修正 | |
| button = 1; | |
| reverse = ret.reverse; | |
| }); |
This file contains hidden or 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 urllib | |
| import re | |
| cardno,pin = open('credentials.txt').read().split() | |
| # HTML | |
| params = urllib.urlencode({'sbCardNumber': cardno, 'pinNumber': pin}) |