Skip to content

Instantly share code, notes, and snippets.

@kishida
kishida / CaseFrameGrammer.java
Created July 1, 2023 23:51
manipulate app with natural language without OpenAI nor any LLM
import com.atilika.kuromoji.ipadic.Tokenizer;
import java.awt.*;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class CaseFrameGrammer {
enum Degree {
NONE, LITTLE;
@kLabz
kLabz / haxelsp.md
Last active April 18, 2019 12:54
Haxe + LSP + Neovim
@briandk
briandk / install-texlive-without-docs.py
Created July 20, 2016 20:55
Instal a full latex texlive on Ubuntu Xenial without any of the docs
import subprocess
get_line_by_line_texlive_dependencies = subprocess.run(
[
"apt-cache",
"depends",
"texlive-full"
],
universal_newlines=True,
stdout=subprocess.PIPE
@purintai
purintai / kakakucomPrice.gs
Last active February 20, 2017 06:34
価格.comのitemページから値段取得して返すだけの関数
// Only for Google Scripts
function kakakucomPrice(itemUrl) {
try {
var response = UrlFetchApp.fetch(itemUrl);
if (response.getResponseCode() == 200) {
var html = response.getContentText();
re = /ecomm_totalvalue: \'(\d+)\'/;
var result = html.match(re);
if (result == null) {
return "Sold out";
@rcmdnk
rcmdnk / vim_ime.ahk
Last active February 19, 2020 02:10
Automatic IME off for Vim by AutoHotkey. IME.ahk is needed to be placed in the same directory with this setting script (http://www6.atwiki.jp/eamat/pages/17.html).
; Auto execute section is the region before any return/hotkey
; For Terminal/Vim
GroupAdd Terminal, ahk_class PuTTY
GroupAdd Terminal, ahk_class mintty ; cygwin
GroupAdd TerminalVim, ahk_group Terminal
GroupAdd TerminalVim, ahk_class Vim
; Include IME.hak
; http://www6.atwiki.jp/eamat/pages/17.html
@teramako
teramako / fx_cookie.md
Last active December 14, 2015 09:09
Firefox の Cookie 周りの設定について
@mala
mala / AutoCopyFasterfoxLite.txt
Last active December 11, 2015 03:29
AutoCopy / Fasterfox Liteに関するスパイウェア疑惑に関するメモ
http://mozilla-remix.seesaa.net/article/313529718.html
Fasterfox Liteで送信されているのは
- 起動時にUserAgentやユニークidを送る。
- 存在しないドメインにアクセスした場合に、そのドメイン名を送る(フルのURLではない)
「閲覧URLに関わる情報」で送られるのは、最大でもドメイン名まで。(ソースを参照)
Fasterfox Liteの過去バージョン(3.9.5-3.9.8) も調べてみたが、同様に閲覧URLを収集する機能は存在しないか、コメントアウトされていた。
ソース中
@hishidama
hishidama / FizzBuzz.java
Created August 8, 2012 16:58
ビット演算を駆使したFizzBuzz
package jp.hishidama.joke;
public class FizzBuzz {
public static void main(String[] args) {
for (String s : args) {
System.out.println(new FizzBuzz(s));
}
}
@sifue
sifue / vimrc_local.vim
Created February 23, 2012 01:35
秀丸を使ってた人が入れておいたほうが楽なWindowsのGVimの設定 ref: http://qiita.com/items/2745
" カレントディレクトリ設定
cd C:\Users\username
"Windowsクリップボードの共有
set clipboard=unnamed
"Tabのスペース数
set tabstop=2
"行数表示
@hileon
hileon / gist:1311735
Created October 25, 2011 07:39 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Windows)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command prompt
Ctrl+` python console
Ctrl+N new file

Editing