Skip to content

Instantly share code, notes, and snippets.

View futoase's full-sized avatar
🐱
Focusing

Keiji Matsuzaki futoase

🐱
Focusing
  • Japan
View GitHub Profile
@futoase
futoase / gist:1445757
Created December 8, 2011 02:00
skyrim 英語版実行ファイルで日本語字幕・日本語音声で遊ぶ方法
http://www.dotup.org/uploda/www.dotup.org2357777.txt から入手。
入手のきっかけは2ch PCゲーム板のSKYRIMスレより
(http://yuzuru.2ch.net/test/read.cgi/game/1323307978/4)
//-----------------------------------------------------------------------------
Skyrim英語ver1.3のexeで日本語字幕・日本語音声にする方法
(日本語版exeと一部ファイルががクソで致命的バグが発声するため)
2011/12/8 公式(ゼニアジ)日本語ファイル使用 版
@futoase
futoase / gist:1826438
Created February 14, 2012 12:24
bottle skeleton maker
#!/usr/bin/env python
# -*- coding:utf-8 -*-
DEBUG = True
RELOAD = True
import os
import sys
INDEX_TPL = (
@futoase
futoase / php54.rb
Created March 2, 2012 09:30
PHP 5.4.0 Release向け homebrew Formulaファイル(レシピ)。 /usr/local/Library/Formula にコピーして brew install php54.
require 'formula'
class Php54 < Formula
url 'http://downloads.php.net/stas/php-5.4.0.tar.gz'
version '5.4'
homepage 'http://www.php.net/'
md5 '46b72e274c6ea7e775245ffdb81c9ce5'
depends_on 'mysql'
@futoase
futoase / gist:2298717
Created April 4, 2012 06:22
quick sort
def qsort(L):
if len(L) == 1:
return [L[0]]
elif len(L) == 0:
return []
else:
return qsort([x for x in L[1:] if L[0] >= x]) + [L[0]] + qsort([y for y in L[1:] if L[0] < y])
@futoase
futoase / gist:3922524
Created October 20, 2012 07:38
httpserver sample script
declare function require(name: string);
interface Http {
createServer(callback: (req: Request, res: Response) => any): CreateServer;
}
interface CreateServer {
listen(port?: number, host?: string);
}
interface Request {
url: string;
@futoase
futoase / ghost-test.html
Created November 26, 2012 17:22
ghost-test.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Ghost.py test</title>
<link rel="stylesheet" type="text/css" href="./ghost-test.css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="./ghost-test.js"></script>
</head>
<body>
@futoase
futoase / ghost-test.js
Created November 26, 2012 17:23
ghost-test.js
console.log('loaded ghost-test.js');
$(document).ready(function (){
ghostTest.init();
});
var ghostTest = (function (){
return {
init: function () {
$("#fire").click(function (){
@futoase
futoase / ghost-test.css
Created November 26, 2012 17:23
ghost-test.css
.title {
background-color: #aaa;
}
.title-inner {
margin-left: 10px;
}
.sunny {
border-style: solid;
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# http://stackoverflow.com/questions/3140779/how-to-delete-files-from-amazon-s3-bucket
import sys
from boto.s3.connection import S3Connection
from boot.s3.bucket import Bucket
@futoase
futoase / gist:4244901
Created December 9, 2012 13:32
Octopress Nicovideo plugin
# -*- coding:utf-8 -*-
require 'open-uri'
require 'rexml/document'
API_BASE = 'http://ext.nicovideo.jp/api/getthumbinfo/'
module Jekyll
class Nicovideo < Liquid::Tag
def initialize(name, id, tokens)