Skip to content

Instantly share code, notes, and snippets.

var board = [
["l","h","i","k","o","a","v"],
["r","q","s","c","z","l","p"],
["u","w","a","l","n","f","o"],
["t","y","k","a","j","e","h"],
["a","h","i","t","s","y","d"],
["e","f","o","p","t","x","n"],
["r","u","z","w","y","v","e"]
];
@yamitake
yamitake / gist:3077814
Created July 9, 2012 17:40
jquery.cssproperties.js
/**
jquery.cssproperties.js ver1.0
The MIT License
Copyright (c) since 2012 Yapr! inc. jun takeno
http://www.facebook.com/yamitake
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@yamitake
yamitake / gist:3087858
Created July 11, 2012 03:43
bootstrap-dropdown.jsをマウスオーバーで開く様にする。
//誰か解決方法を教えて。
$(function()
{
$(".dropdown").hover(function(){
$('body').trigger("click");
$(".dropdown-toggle" , this).trigger("click");
},function(){
});
});
@yamitake
yamitake / jquerty.glance.js
Created July 22, 2012 16:48
jquerty.glance.js
(function($) {
$.fn.glance= function(options){
/**
* default Options
*/
var defaults ={
texts : [[" |ω・`)チラッ" , 500 ] ,
["┃ω・)ジー" , 1000 ],
["|)彡サッ" , 10000],
["" , 500] ,
@yamitake
yamitake / gist:3164395
Created July 23, 2012 16:00
exsample glance
//参考 http://dokoaa.com/kita/1k.html 
//http://members.jcom.home.ne.jp/anima/aa.html
$('title').glance({
texts: [
"キタ━(゚∀゚)━!!!!" ,
"キタ━( ゚∀)━!!!!" ,
"キタ━(  ゚)━!!!!" ,
"キタ━(  )━!!!!" ,
"キタ━(゚  )━!!!!" ,
"キタ━(∀゚ )━!!!!" ,
@yamitake
yamitake / btn-blink
Created September 27, 2012 05:55
ほわほわするスタイルシート
@yamitake
yamitake / gist:3792429
Created September 27, 2012 05:55
ほわほわするスタイルシート
/* Download button */
@-webkit-keyframes downloadButton {
0% { box-shadow: inset 0 1px 0 rgba(120,120,255,.1), 0 1px 5px rgba(100,100,50,.25), 0 2px 10px rgba(200,200,255,.5); }
50% { box-shadow: inset 0 1px 0 rgba(120,120,255,.1), 0 1px 5px rgba(100,100,50,.25), 0 2px 25px rgba(200,200,255,.9); }
100% { box-shadow: inset 0 1px 0 rgba(120,120,255,.1), 0 1px 5px rgba(100,100,50,.25), 0 2px 10px rgba(200,200,255,.5); }
}
@-moz-keyframes downloadButton {
0% { box-shadow: inset 0 1px 0 rgba(120,120,255,.1), 0 1px 5px rgba(100,100,50,.25), 0 2px 10px rgba(200,200,255,.5); }
50% { box-shadow: inset 0 1px 0 rgba(120,120,255,.1), 0 1px 5px rgba(100,100,50,.25), 0 2px 25px rgba(200,200,255,.9); }
100% { box-shadow: inset 0 1px 0 rgba(120,120,255,.1), 0 1px 5px rgba(100,100,50,.25), 0 2px 10px rgba(200,200,255,.5); }
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
@yamitake
yamitake / turbolink5check.js
Created December 22, 2016 04:48
turbolink5check
$(function(){
// Turbolinksの効いたリンクをクリックした時
$(document).on('turbolinks:click' , function(){
console.log("turbolinks:click");
});
// Turbolinksによる遷移が始まる直前(キャンセル可能)
$(document).on('turbolinks:before-visit', function(){
console.log("Turbolinksによる遷移が始まる直前(キャンセル可能):turbolinks:before-visit");
});