Skip to content

Instantly share code, notes, and snippets.

View mi3tek-amb's full-sized avatar

Mitsuki Suzuki mi3tek-amb

View GitHub Profile
$.fn.fontWall = function(options){
var options = $.extend({
init:13,fontRetio:1,heightRetio:0.8
},options);
var text = $(this).text(),
text = text.split('/'),
@mi3tek-amb
mi3tek-amb / test.js
Last active December 24, 2015 13:09
;(function(){
var
divElement = document.getElementsByTagName('div');
divElement[0].innerHTML = '<span>hello world</span>';
})();
$.id = function(selector, context){
return new jQuery.prototype.init.id(selector, context);
};
$.html = function(selector, context){
return new jQuery.prototype.init.html(selector, context);
};
$.extend(
jQuery.prototype.init,
{
(function($){
$.fn.myPlugin = function myPlugin(options){
var that = this;
that.options = $.extend(
{
optionA:'A',
optionB:'B'
jQuery.fn.transform = function(setting,callback,elem,undefined){
return this.each(function(){
var
self = this,
elem = elem ? elem : this,
loop = setting.loop,
type = setting.type,
duration = setting.duration,
/* jQuery.slideShow.js
*
* The MIT License (MIT) Copyright (c) 2013
* copyright : Mistuki Suzuki
*/
;(function($){
$.prototype.imageSlider = function main(){
(function($){
$.fn.commentPic = function(option){
var
option = $.extend({
id:null,
pics:true,
profile:true,
blog:true,
@mi3tek-amb
mi3tek-amb / jQuery.postGist.js
Last active December 22, 2015 17:19
pass a eval's riskiness with "to return error if jQuery objects wrapped script tags " .
(function($){
$.fn.postGist = function(option){
var option = $.extend({
id:'anonymous'
},option);
return this.each(function(){
var self = this,
postId = $(this)[0].className.split(' ')[1];
#!/usr/local/bin/python
# coding: utf-8
import fontTools
from fontTools.subset import *
import hashlib
import cgi
import sys
import os
def hello
print "Hello, Ruby\n"
end
hello()