Skip to content

Instantly share code, notes, and snippets.

View katapad's full-sized avatar

Yoshio Kakehashi katapad

View GitHub Profile
@import "compass/css3/user-interface"
@mixin smartphone-init
*-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
-webkit-touch-callout: none
*:not(input)
+user-select(none)
@mixin overflow-scroll()
@katapad
katapad / sh
Created July 16, 2013 09:38
AIR SDKをマージするときに使うコマンド。 sdkディレクトリにtbz2 をほりこんでからやる
tar jxvf AdobeAIRSDK.tbz2
@katapad
katapad / upload_google_cloud_storage.sh
Created July 5, 2013 13:24
Google Cloud Storageのコマンド
# https://developers.google.com/storage/docs/gsutil/commands/cp?hl=ja
#全部アップロード & パブリック
gsutil cp -a public-read -R ./ gs://my-bucket-name
# 特定のディレクトリをアップロード
gsutil cp -a public-read -R ./www/** gs://my-bucket-name
#全部削除
@katapad
katapad / index.jade
Created June 18, 2013 12:52
jadeの:markdownフィルターとcoffeeフィルター + 外部ファイル読み込み
html
head
body
h1 マークダウンのテストです
#mdBlock
:markdown
# markdownで見出し1
@katapad
katapad / memo.css
Created June 10, 2013 09:45
back-faceがある。
* { -webkit-backface-visibility: hidden; }
@katapad
katapad / .htaccess
Created May 31, 2013 13:38
teaserとmainとspとpcを切り分けるhtaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index.html
RewriteEngine On
@katapad
katapad / .htaccess
Created May 31, 2013 10:24
index.htmlを /test2/sub/index.htmlのもので表示する mod_rewrite
RewriteEngine On
RewriteRule ^(/|index.html)$ /test2/sub2/index.html [P,L]
@katapad
katapad / .htaccess
Created May 31, 2013 10:22
imgとかはCDNにしつつ、.htmlだけ見えなくするhtaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
<Files ~ "\.(html)$">
AuthType Basic
AuthName "enter id and pass"
AuthUserFile /srv/hogehoge/public/.htpasswd
require valid-user
@katapad
katapad / youtube.as
Created May 29, 2013 05:34
youtube player
private function getType(type:*):String
{
var result:String = '';
switch (type)
{
case -1: result = YoutubeEvent.UNSTARTED; break;
case 0: result = YoutubeEvent.ENDED; break;
case 1: result = YoutubeEvent.PLAYING; break;
case 2: result = YoutubeEvent.PAUSED; break;
case 3: result = YoutubeEvent.BUFFERING; break;
@katapad
katapad / AIR 3.6 for iOS and Android
Last active December 17, 2015 18:18
IDEAで設定してるcompiler options
Project Defaults
-default-size 640 1096 -swf-version=19 -default-frame-rate 60 -default-background-color 0xFFFFFF
Additional
-define+=CONFIG::mobile,false -define+=CONFIG::ios,false -define+=CONFIG::android,false -define+=CONFIG::desktop,true -define+=CONFIG::debug,true -define+=CONFIG::release,false -define+=CONFIG::device,false -compiler.optimize=false -compiler.incremental=true