Skip to content

Instantly share code, notes, and snippets.

View tuki0918's full-sized avatar
🏠
Working from home

Y.Yamamoto tuki0918

🏠
Working from home
View GitHub Profile
@tuki0918
tuki0918 / method.js
Last active December 18, 2015 04:59
JS汎用コード
(function(){
alert(1);
alert(2);
alert(3);
})();
(function(){
var total = {};
var year = '2012';
var all = false;
function init(num) {
if(typeof num !== 'number') {
num = 0;
$('<div/>').css({
position: 'fixed',
left: 0,
@tuki0918
tuki0918 / Gruntfile.coffee
Created June 14, 2013 07:43
TiShadow-Grunt-Jasmine
module.exports = (grunt)->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
watch:
files: ['coffee/**/*.coffee']
tasks: ['coffee', 'tishadow:test']
coffee:
compile:
files: [
expand: true
@tuki0918
tuki0918 / a.coffee
Created July 2, 2013 01:48
http://raizin-japan.com/cool/ の canvasで動いてる部分のみ下に移動するやつ ChromeのConsoleで実行
smokes = ['.vSmokeL', '.hSmokeL', '.cSmokeL', '.vSmokeR', '.hSmokeR', '.cSmokeR']
hidden = ['.main-copy', '.product-info']
for h in hidden
$(h).each ->
$(this).css('visibility', 'hidden')
return
for s in smokes
$(s).each ->
@tuki0918
tuki0918 / topsy_pager.js
Created November 3, 2013 05:53
ブックマークレット:TOPSY ページの自動オフセット切り替え
var countUp = 24;
var field = 'offset';
var re = new RegExp('('+field+'=)(\\d{0,})');
var offset = location.search.match(re);
var num = 0;
var href = location.href;
if (offset) {
@tuki0918
tuki0918 / presentation.js
Created November 23, 2013 11:42
GistのMarkdownで作るプレゼンテーション
var $bgWindow = $('<div/>');
$bgWindow.css({
'background-color': '#222',
'opacity': '.95',
'position': 'fixed',
'left': 0,
'top': 0,
'width': '100%',
'height': '100%',
'z-index': 999
@tuki0918
tuki0918 / pre.md
Last active December 29, 2015 04:19
プレゼンテンプレ

タイトルタイトルタイトル


サブタイトルサブタイトルサブタイトル

qr

タイトルタイトルタイトル


@tuki0918
tuki0918 / howto.md
Last active July 30, 2018 12:23
git hook 引用多めのため非公開

明日からはじめる Git フック


フックスクリプトの種類とサンプル

 

logo

@tuki0918
tuki0918 / build.xml
Last active January 4, 2016 13:59
jenkins for phpunit memo. buid.xml ant
<project name="jenkins project" default="build">
<target name="phpunit">
<exec dir="." executable="phpunit" failonerror="true">
<arg line="--colors tests" />
</exec>
</target>
<target name="build" depends="phpunit"/>
</project>
@tuki0918
tuki0918 / allow.htaccess
Created February 27, 2014 12:39
.htaccess 特定のホスト・IPの許可と制限 / ホームページ / マニュアル - レンタルサーバーならロリポップ! : http://lolipop.jp/manual/hp/htaccess-03/
order allow,deny
allow from all
deny from 制限をかけたいホスト・IP