Skip to content

Instantly share code, notes, and snippets.

View geckotang's full-sized avatar
:octocat:

Shotaro Sakamaki geckotang

:octocat:
View GitHub Profile
@geckotang
geckotang / README
Created September 15, 2012 04:37
CSS PANIC
--
\紹介されました/
http://snook.ca/archives/conferences/css-takes-over-the-world
http://tv.adobe.com/watch/max-2011-envision/css-takes-over-the-world/
--
CSS PANIC - a game, noJS, only CSS and HTML -
JavaScriptを使わない。
CSSプログラミング第二弾「CSS PANIC」
@geckotang
geckotang / README
Created September 15, 2012 04:40
2012-09-15 1st
Will become a heading
==============
Will become a sub heading
--------------
*This will be Italic*
**This will be Bold**
@geckotang
geckotang / jsdoit.css
Created October 31, 2012 05:26
2012-10-31 1st
body { background-color: #DDDDDD; font: 30px sans-serif; }
@geckotang
geckotang / README
Created November 1, 2012 05:39
LINEを起動したりする
## 説明
LINEがインストールされている端末のみ
* line:// で LINEを起動
* line://msg/text/メッセージ で LINEを起動してユーザーを選ぶと *メッセージ* が既に入力されている
## 参考
@geckotang
geckotang / gist:5361672
Created April 11, 2013 08:20
検索文字,置換文字 検索文字,置換文字 検索文字,置換文字 のcsvを用意し、読み込ませると、開いているpsdファイルのレイヤーを検索して、 テキストレイヤーの場合、対象の文字列を置換する。 (諸事情でフォント名をベタ打ち) いろんな事情で、ここで諦めた。
var _layers = [];
var lang = {};
$.writeln("-------------------------------");
main();
function main(){
var document = activeDocument;
var layers = document.layers;
loadCSV(function(lang){
@geckotang
geckotang / test.html
Created June 6, 2013 08:11
読み込まれたscript要素の位置を取得する
<script id="testscript" src="test.js">
<script id="testscript2" src="test2.js">
  • CreativeCloud ※Creative Cloudでも可
  • Adobe
  • CreateNow ※Create Nowでも可
  • CreativeStation
  • CC
  • CC-POD
  • MAGIC MASTER
  • Adobe Creative Cloud
  • Adobe TV
  • Photoshop Magazine
@geckotang
geckotang / example3.ino
Created June 24, 2013 18:36
本にあるサンプルを若干変更。
/*
* 押したらLEDつきっぱなし
* 再度押したらLED消える。
*/
// LEDが接続されているピン
const int LED = 13;
// ボタンが接続されているピン
const int BUTTON = 7;
@geckotang
geckotang / new_gist_file
Created July 10, 2013 02:28
selector limit
var timer,
count_rule = 0,
count_maxrule = 4600,
sheet = document.styleSheets[0];
function addCSSRule(sheet, selector, rules, index) {
if(sheet.insertRule) {
sheet.insertRule(selector + "{" + rules + "}", index);
}
else {