Skip to content

Instantly share code, notes, and snippets.

View youz's full-sized avatar
🈳
kyomu

Yōsuke Ushiki youz

🈳
kyomu
View GitHub Profile
anonymous
anonymous / README.md
Created June 4, 2013 15:03
英語<->エンテ・イスラ語変換

inputのテキストエリアに英語を入力するとエンテ・イスラ語に、エンテ・イスラ語を入力すると英語に変換

@jboner
jboner / latency.txt
Last active May 2, 2024 09:45
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@kik
kik / D.cc
Created April 15, 2012 10:48
GCJ 2012 Qual D
#include <iostream>
#include <vector>
#include <boost/math/common_factor.hpp>
#include <algorithm>
using namespace std;
typedef vector<vector<char> > room_t;
int main()
@miyamuko
miyamuko / gist:1859520
Created February 18, 2012 14:18
Lisp implementation source code

Check out

git clone git://ecls.git.sourceforge.net/gitroot/ecls/ecl
git clone git://sbcl.git.sourceforge.net/gitroot/sbcl/sbcl.git
git clone git://common-lisp.net/projects/cmucl/cmucl.git
hg clone http://clisp.hg.sourceforge.net:8000/hgroot/clisp/clisp
hg clone https://code.google.com/p/mcl/
svn co http://svn.clozure.com/publicsvn/openmcl/trunk/source ccl
svn co http://svn.common-lisp.net/armedbear/trunk/abcl
@miyamuko
miyamuko / gist:1550137
Created January 2, 2012 10:06
xl-winhttp の関数生成
(defun to-api (api)
(setf api (substitute-string api "^WinHttp" ""))
(setf api (substitute-string api "[A-Z][a-z]+" "\\0-"))
(setf api (substitute-string api "-$" ""))
(string-downcase api))
(defun gen-winhttp-api ()
(let ((api-list-html (xhr:xhr-get "http://msdn.microsoft.com/en-us/library/windows/desktop/aa384257.aspx"
:key #'xhr:xhr-response-text)))
(with-output-to-temp-buffer ("*tmp*")
;; 参考: http://d.hatena.ne.jp/khiker/20080531/emacs_jimaku
;; フックをリセット
(setq slime-connected-hook '() )
(defun shobon-shakin ()
(flet ((wait-wait (sec)
(sleep-for sec)
(discard-input)
(redisplay) ))
@youz
youz / gist.l
Created November 4, 2011 13:57
#xyzzy で Gist閲覧 & 投稿
;;; -*- mode:lisp; package: gist -*-
;; gist.l - xyzzyでGistの閲覧, ポスト
;;
;; Copyright (c) 2011-2012 Yousuke Ushiki
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@youz
youz / markdown-mode.l
Created November 4, 2011 12:53
改変 markdown-mode for #xyzzy (色付け & メジャーモード化)
;; -*- mode:lisp; package:markdown-mode -*-
;; markdown.l ( http://www.geocities.jp/kiaswebsite/xyzzy/markdown.html )
;; Rev: 227 を元に改変
;;
;; License
;; =======
;;
;; Copyright (c) 2011 Yousuke Ushiki <citrus.yubeshi@gmail.com>
;; Copyright (c) 2005,2006 kia
@miyamuko
miyamuko / gist:1305831
Created October 22, 2011 09:59
cl-hogehoge を #xyzzy に移植するときのテンプレート生成
;;
;; あるパッケージ内で定義されているシンボルの中から
;; ansify にあるシンボルと未定義のシンボルを取得して、
;; パッケージのテンプレートを生成する。
;;
;; cl-hogehoge の移植用に。
;;
;; 以下で定義している関数を利用しています。
;;
;; #xyzzy にはないシンボルと ansify にあるシンボルに色をつけるためのキーワードファイルの生成
@p01
p01 / LICENSE.txt
Created October 13, 2011 19:29 — forked from 140bytes/LICENSE.txt
Music SoftSynth
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE