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 python3 | |
from saklient.cloud.api import API | |
import subprocess | |
from pprint import pprint | |
import re | |
def get_ipaddr(iface): | |
m = re.search( |
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
msgid "" | |
msgstr "" | |
"#-#-#-#-# ACHIEVEMENTS.po (World Of WarshipsReport-Msgid-Bugs-To: MIME-" | |
"Version: 1.0Content-Type: text/plain; charset=utf-8) #-#-#-#-#\n" | |
"Project-Id-Version: World Of WarshipsReport-Msgid-Bugs-To: MIME-Version: " | |
"1.0Content-Type: text/plain; charset=utf-8\n" | |
"#-#-#-#-# ARMOR.po (World Of WarshipsReport-Msgid-Bugs-To: MIME-Version: " | |
"1.0Content-Type: text/plain; charset=utf-8) #-#-#-#-#\n" | |
"Project-Id-Version: World Of WarshipsReport-Msgid-Bugs-To: MIME-Version: " | |
"1.0Content-Type: text/plain; charset=utf-8\n" |
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 python3 | |
from PIL import Image | |
import sys | |
import itertools | |
src, dst = sys.argv[1:3] | |
src = Image.open(src) | |
img = Image.new("LA", src.size) |
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
#include <iostream> | |
#include <windows.h> | |
#include <gdiplus.h> | |
#include <memory> | |
using namespace Gdiplus; | |
using namespace std; | |
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid) | |
{ |
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 python3 | |
import subprocess | |
import time | |
import datetime | |
import sys | |
interval = float(sys.argv[1]) | |
while True: |
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 each_slice(iterable, nslice): | |
from itertools import groupby, repeat | |
for _, g in groupby(enumerate(iterable), lambda elem: elem[0] // nslice): | |
yield map(tuple.__getitem__, g, repeat(1)) |
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(){ | |
if(document.location.href != 'http://www.pixiv.net/'){ | |
location.href = 'http://www.pixiv.net/'; | |
return; | |
} | |
function choose(urls, choosed){ | |
if(urls.length < 1){ | |
Array.prototype.push.apply(urls, choosed); | |
choosed.length = 0; | |
} |
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
*.pyc |
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
//javascript: | |
(function(){ $('.dashboard,.global-nav,.timeline-tweet-box').remove(); $('#page-container,#page-outer,div[role="main"]').css({marigin: '0 0 0 0', padding: '0 0 0 0', width: '100%'}); setInterval(function(){ $('.new-tweets-bar').click() }, 1000) })() |
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(){ | |
if(!location.href.match(/^https?:\/\/p\.eagate\.573\.jp\//)){ | |
alert('e-AMUSEMENT GATEから実行し直してください。'); | |
location.href = 'http://p.eagate.573.jp/game/2dx/22/p/djdata/status.html'; | |
return; | |
} | |
const CURRENT = 22; // IIDX 22 PENDUAL | |
const CLASSES = [[0, 0], [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13], [0, 14], [0, 15], [0, 16], [0, 17], [1, 0], [1, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17]]; |