Skip to content

Instantly share code, notes, and snippets.

View giginet's full-sized avatar
🌴
年中On vacation

Kohki Miki giginet

🌴
年中On vacation
View GitHub Profile
# -*- coding: utf-8 -*-
#
# ng.py
# created by giginet on 2011/10/23
#
import os
import random
from PIL import Image
templates = [Image.open('templates/type%d.png' % i).convert('RGBA') for i in xrange(1, 5)]
# -*- coding: utf-8 -*-
#
# /Users/giginet/Desktop/gyouza.py
# created by giginet on 2011/11/25
#
import twoauth
class Gyoza(object):
def __init__(self, consumer_key, consumer_secret, access_token, access_token_secret):
self.tw = twoauth.api(consumer_key, consumer_secret, access_token, access_token_secret)
enchant()
class SampleGame extends Game
constructor : ->
super 320, 320
@fps = 30
SampleGame.game = @
@preload "miku.gif"
@onload = ->
@rootScene.addChild new Player(100, 100)
@start()
require 'open-uri'
require 'rubygems'
require 'json'
require 'hatenabm'
GITHUB_USERNAME = 'giginet'
BITBUCKET_USERNAME = 'giginet'
HATENA_USERNAME = 'gigi-net'
HATENA_PASSWORD = '********'
GITHUB_API_BASE = 'https://api.github.com'
# -*- coding: utf-8 -*-
#
# banner.py
# created by giginet on 2011/12/07
#
import os
import random
import urllib2
from cStringIO import StringIO
from PIL import Image
class SkeltonjQueryPlugin
constructor : (@pluginName) ->
plugin = @
$.fn[@pluginName] = (method) ->
if method and plugin[method]?
return plugin[method].apply @, Array::slice.call(arguments, 1)
else if typeof method is 'object' or not method
return plugin['init'].apply @, arguments
else
$.error "Method #{method} does not exist on jQuery.#{plugin.pluginName}()."
# -*- coding: utf-8 -*-
__author__ = 'giginet'
__version__ = '1.0.0'
__date__ = '2011/10/10'
import os
import sys
from cStringIO import StringIO
from pygments import highlight
from pygments.lexers import get_lexer_by_name
@mixin crossbrowser($attr, $value) {
#{$attr}: $value;
-moz-#{$attr}: $value;
-webkit-#{$attr}: $value;
}
# -*- coding: utf-8 -*-
#
# ffmpeg.py
# created by giginet on 2011/12/18
#
import os
import re
import sys
import math
import commands
# -*- coding: utf-8 -*-
#
# /Users/giginet/Desktop/azui.py
# created by giginet on 2011/12/20
#
import random
import twoauth
class Azui(object):
AZUI = ['Azusayumi_', 'st_e3']
def __init__(self, consumer_key, consumer_secret, access_token, access_token_secret):