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
;; | |
;; An autohotkey script that provides emacs-like keybinding on Windows | |
;; | |
#InstallKeybdHook | |
#UseHook | |
; The following line is a contribution of NTEmacs wiki http://www49.atwiki.jp/ntemacs/pages/20.html | |
SetKeyDelay 0 | |
; turns to be 1 when ctrl-x is pressed |
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
// ConPTY 手習い (with winapi-rs, vte) | |
// | |
// https://github.com/jwilm/alacritty/blob/master/src/tty/windows/conpty.rs | |
// https://github.com/chyyran/conmux/blob/master/src/conpty.rs | |
// https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/ | |
use std::fs::File; | |
use std::io::prelude::*; | |
use std::io::Write; | |
use std::mem; |
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
{"lastUpload":"2019-12-01T13:33:49.180Z","extensionVersion":"v3.4.3"} |
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
// ==UserScript== | |
// @name Feedly Star Opener | |
// @namespace http://www.srcw.net/ | |
// @description Open saved items in Feedly | |
// @include http://feedly.com/* | |
// @include https://feedly.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @version 1.0.2 | |
// ==/UserScript== |
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
body {} |
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/python | |
# -*- coding: utf-8 -*- | |
# http://futaba.qs.cjb.net/nijiran/fCatalog_MAY.html のタイトル取得が | |
# うまく出来んと言われたのでやってみた (なげやり) | |
# lxml は charset 適当に見つけたら上手いこと decode してくれるので | |
# response.text じゃなくて response.content を lxml.html.fromstring に | |
# 渡せばいいよとかそんな話 |
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/python | |
# -*- coding: utf-8 -*- | |
# Example: python3 kasi_time.py 65532 | |
import sys | |
from selenium import webdriver | |
if len(sys.argv) != 2: | |
print('Usage: kasi_time.py id', file=sys.stderr) |
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
#ifndef LUAHELPER_HPP | |
#define LUAHELPER_HPP | |
#include <iostream> | |
#include <memory> | |
#include <string> | |
#include <tuple> | |
#include <lua.hpp> |
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
/* | |
サークルの講座用に書いた何か. | |
`もう/もう 何/なに も/も 怖/コワ く/く な/な い/い 。/。` | |
という形式のコーパスを読み込んで仮名漢字変換っぽい何かをします. | |
未知語とか何も考えてない上にスムージングのパラメータも適当でこれはひどい. | |
「EUCだから1文字2バイトだろ」とか決め打ちでこれはひどい. | |
全体的に富豪気味でこれはひどい. | |
using namepsace std; もぐもぐ! |
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/python | |
# -*- coding: utf-8 -*- | |
# http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/ | |
from sys import argv | |
from time import gmtime, strftime | |
from urllib import urlencode, urlopen | |
from xml.etree import ElementTree as ET | |
from base64 import b64encode |
NewerOlder