Skip to content

Instantly share code, notes, and snippets.

View peace098beat's full-sized avatar

Tomoyuki Nohara peace098beat

View GitHub Profile
@peace098beat
peace098beat / WEB SOUNDER オーディオデータを再生する
Created April 13, 2014 12:42
WEB SOUNDER オーディオデータを再生する
// 参考
// [WEB SOUNDER オーディオデータを再生する](http://curtaincall.weblike.jp/portfolio-web-sounder/webaudioapi-basic/audio)
window.onload = function () {
// body...
alert('test_02.js: window.onloadが呼ばれました.');
}
window.AudioContext = window.AudioContext || window.webkitAudioContext;
//Create the instance of AudioContext
@peace098beat
peace098beat / Deproy_TextDocument ver.2.0
Created August 23, 2014 09:57
[AE Script] 選択したレイヤーのポジションを、カメラの焦点位置としてKeyに書き出す
/********************************************************
---- Deproy_CameraKeyPosition ver.1.0 ----
選択したレイヤーのポジションを、カメラの焦点位置としてKeyに書き出す
(注意)選択したレイヤーは3Dオプション(サイコロアイコン)をつけていないとカメラは対応しません。
by fifi 2014/03/22
/********************************************************/
@peace098beat
peace098beat / List_ObjProperty ver.1.0
Created August 23, 2014 10:00
[AE Script] 選択したレイヤーのプロパティ値を洗い出す。
/********************************************************
---- List_ObjProperty ver.1.0 ----
選択したレイヤーのプロパティ値を洗い出す。
by fifi 2014/03/22
補足:取得したmatchnameを使うには
myLayer.property("ADBE Transform Group").property("ADBE Position")で使える。
@peace098beat
peace098beat / gravityShape_v2.m
Created October 2, 2014 07:43
Gravity Shape
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% -- gravityShape_v2.m --
%
% 引力曲線の可視化
% オブジェクト数を拡張
% 野原友幸 2014.10.02
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
@peace098beat
peace098beat / css-debug
Created October 7, 2014 04:13
css-debug HTMLの作成中に要素の枠を表示
@charset "utf-8";
/* CSS Document */
/* outlineを全要素で表示させる
-----------------------------------------------------------------------------------*/
body * { outline: 2px dotted rgba(255,0,0,1) !important; } /* red */
body * * { outline: 2px dotted rgba(0,128,0,1) !important; } /* green */
body * * * { outline: 2px dotted rgba(255,165,0,1) !important; } /* orange */
body * * * * { outline: 2px dotted rgba(0,0,255,1) !important; } /* blue */
@peace098beat
peace098beat / font-min.css
Created October 7, 2014 04:17
CSSセット
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.6.0
@mixin font_10 { font-size: 77%; }
@mixin font_11 { font-size: 85%; }
@mixin font_12 { font-size: 93%; }
@mixin font_13 { font-size: 100%; }
@mixin font_14 { font-size: 108%; }
@peace098beat
peace098beat / form-wedding.php
Created October 7, 2014 12:21
form-weddingmovie-bootstrap-php
<form class="form" role="form" method="POST" action="<?php echo $_SERVER["SCRIPT_NAME"]?>">
<p>入力<?php echo $ary["id"];?></p>
<div id="userform" class="container color-wb">
<div class="row">
<div id="userform-left" class="col-xs-5">
<div class="row"><p class="col-xs-4 text-right text-danger" >名前*</p><input class="col-xs-8" type="text" value="<?php echo $ary["user"];?>" name="user"></div>
<div class="row"><p class="col-xs-4 text-right text-danger" >上予定映日*</p><input class="col-xs-8" type="date" value="<?php echo $ary["publishd"];?>" name="publishd"></div>
<div class="row"><p class="col-xs-4 text-right text-danger" >動画内容*</p>
<div class="col-xs-8">
<div class="radio"><label><input class="radio" type="radio" value="友人からの余興" name="story" <?php echo ( ($ary["story"]=="友人からの余興") ? "checked" : ""); ?>>友人からの余興</label></div>
@peace098beat
peace098beat / dummy-gene.html
Created October 7, 2014 14:11
ダミージェネレータ | unsplash.it
<a href="https://unsplash.it/">dummy generator<a/>
<img src="https://unsplash.it/200/300" alt="...">
<img src="https://unsplash.it/200/300?random" alt="...">
<img src="https://unsplash.it/200/300/list" alt="...">
<img src="https://unsplash.it/200/300?image=0" alt="...">
<img src="https://unsplash.it/200/300?blur" alt="...">
<img src="https://unsplash.it/200/300?gravity=east" alt="...">
<img src="https://unsplash.it/200/300?gravity=north" alt="...">
<img src="https://unsplash.it/200/300?gravity=south" alt="...">
@peace098beat
peace098beat / save-upfile.php
Created October 8, 2014 11:24
save-upfile.php | フォルダ内の画像ファイル一覧を取得
<?php
/**********************************************************
/ ディレクトリ内の情報を取得する
/**********************************************************/
$array = scandir("./img/");
// mb_convert_variables("EUC-JP", "UTF-8", $array);
// mb_convert_variables("UTF-8", "UTF-8", $array);
@peace098beat
peace098beat / grid-a-licious.php
Created October 8, 2014 11:48
グリッドレイアウト用プラグイン Grid A Licious
<html>
<head>
<title>グリッドレイアウト | Grid-A-Licious</title>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="./js/jquery.grid-a-licious.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
</head>