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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" /> | |
<!--[if lte IE 8]> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.ie.css" /> | |
<![endif]--> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> | |
<script src="http://www.mapquestapi.com/sdk/leaflet/v1.0/mq-map.js?key=Fmjtd%7Cluur2d08lu%2Cra%3Do5-9a829f"></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
# -*- coding: cp932 -*- | |
import datetime as DT | |
import os, csv, re | |
# np.nan as NaN | |
import numpy as np | |
from matplotlib import pyplot as plt | |
from matplotlib import dates | |
from matplotlib.dates import date2num |
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
# id, password | |
> set dneo_user=userid | |
> set dneo_passwd=password | |
# ログイン トークンを取得 | |
> curl -F cmd=certify -F nexturl=dneo.exe%3Fcmd%3Dlogin -F svuid= -F starttab=1 -F UserID=%dneo_user% -F _word=%dneo_passwd% http://dneo/scripts/dneo/dneor.exe | |
{"status":"ok","rssid":"sidsidsidsidsidisd","STOKEN":"tokentoketokentoketoken","Name":"--------","id":"99","Group":"00","Mail":"hogehoge@example.com","UserID":"userid"} | |
# ログイン セッション用の cookie 生成 |
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
$ echo '{"one":1, "two":2, "日本語":"あああ"}' | python -mjson.tool | |
{ | |
"one": 1, | |
"two": 2, | |
"\u65e5\u672c\u8a9e": "\u3042\u3042\u3042" | |
} |
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
def wand2pil(image): | |
width, height = image.size | |
depth = image.depth | |
if image.colorspace == 'gray': | |
channs = 1 | |
fmt = 'gray' | |
else: | |
channs = 3 | |
fmt = 'RGB' | |
image.depth = 16 |
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
' | |
' C:\gnupack_devel\emacsclientw.vbs | |
' | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
strComputer = "." | |
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") | |
Set colItems = objWMIService.ExecQuery("Select * From Win32_Process") | |
Dim emacsProcess |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> | |
<script> | |
//グーグルチャートの読み込み | |
google.load("visualization", "1", {packages:["corechart"]}); |
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
/* | |
You'll need the information below, get these after adding a device. I'm using the MAC address as the device's ID. | |
org=[org-id] | |
type=[device-type] | |
id=[device-id] | |
auth-method=token | |
auth-token=[auth-token] | |
*/ |
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
# console.log() | |
# for jscript coffee.bat | |
# https://github.com/thinca/coffee-script-on-jscript | |
if (typeof console == "undefined") | |
console = new class | |
log: (message) -> | |
WScript.Echo(message) |
OlderNewer