Skip to content

Instantly share code, notes, and snippets.

View mi3tek-amb's full-sized avatar

Mitsuki Suzuki mi3tek-amb

View GitHub Profile
#!/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()
/* jQuery SpamChecker Js
*----------------------------------------------------
* The MIT License (MIT) Copyright (c) 2014 |
* copyright : Mistuki Suzuki |
* |
*----------------------------------------------------
*/
;!function(j){

通常のアニメーションメソッドとしての利用。

animator(Element).animation(1000,{opacity:0,...},'easeInOutQuad',function(){...})

渡せる引数は以下の4つです。

@ css proparty = { proparty : change in value (int) }
/* animate JS
/
/ var Element = document.getElementById('id');
/ animate(Element).start({opacity:0},1000,function(){...},'easeInOutQuad')
/
/ @attributes = [array]{ prop : chenge in value (int) }
/ @duration = int (msec)
/ @callback = function(){...}
/ @easing = 'name of type' (strings)
/
//javaScript Library
;
(function (window, undefined) {
//initalize
var Document = document,
Window = window,
Query = function (selector, context) {
return new Query.fn.init(selector, context);
};
$.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'