This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You should change the center of this gameObject's mesh from default value (0,0,0). | |
// Because this script put its point to the contact point with the ground. | |
// And "use gravity" must be FALSE. | |
// Call HitTestWithRoad() from Update() | |
public var distance:float = 2.0; | |
public var smoothRatio:float = 0.2; | |
function HitTestWithRoad() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ddf.minim.*; | |
Minim minim; | |
AudioInput in; | |
float data; | |
int[] col = new int[8]; | |
float angle = 0.0; | |
float offsetAngle = PI / 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 参考にしたソースコード: | |
// Prototyping Lab ―「作りながら考える」ためのArduino実践レシピ (Make:PROJECTS) [大型本] 小林 茂 (著) | |
// http://p.tl/RQFE | |
// | |
// 使ったArduino(本当はArduino Nano 3.1): | |
// Arduino Nano | |
// http://p.tl/1D1u | |
// | |
// 使ったセンサを含むキット: | |
// Prototyping Lab Kit Vol.1 スイッチサイエンス |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public var forwardSpeed:Number; | |
public var steerAngle:Number; | |
public var rotationT:float = 0.25; | |
function FixedUpdate () { | |
var x:Number = Input.GetAxis("Horizontal"); | |
var y:Number = Input.GetAxis("Vertical"); | |
if (HitTestWithRoad()) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
◯場所 | |
〒151-0051 東京都渋谷区千駄ヶ谷4丁目23-5 JPR千駄ヶ谷ビル 5F ピクシブ株式会社 | |
http://p.tl/RwHh | |
◯定員 | |
24名 | |
◯入退場について | |
当日は正面玄関が使えません。 | |
入場の際にはビル左奥の通用口インターホンで呼びかけてください。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See: http://www.pixiv.net/group/comment.php?id=747934 | |
pixiv.ui.DrawrPainter.prototype.widthList = [0.9, 2, 4, 6, 10, 15, 30]; | |
alert("pixivグループお絵描きツールの\n一番細い線を0.9pxに設定しました"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function searchAndSave() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheets()[0]; | |
var offset = 0; | |
var limit = 500; | |
while (true) { | |
var threads = GmailApp.search('(subject:日報 AND [report) after:2013/5/31 before:2013/7/1', offset, limit); | |
offset += limit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
javascript:(function(){var s,d,u='//gist.github.com/moyashipan/6409832/raw/main.js'; d=document;s=d.createElement('script');s.setAttribute('src',u);d.documentElement.appendChild(s);}()) | |
*/ | |
(function(){ | |
var u = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'; | |
var d = document; | |
var s = d.createElement('script'); | |
s.setAttribute('src', u); | |
d.documentElement.appendChild(s); | |
var clearId = setInterval(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
javascript:(function(){var s,d,u='//gist.github.com/moyashipan/6409832/raw/main.js'; d=document;s=d.createElement('script');s.setAttribute('src',u);d.documentElement.appendChild(s);}()) | |
*/ | |
(function(){ | |
var u = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'; | |
var d = document; | |
var s = d.createElement('script'); | |
s.setAttribute('src', u); | |
d.documentElement.appendChild(s); | |
var clearId = setInterval(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" .vim/autoload/yml.vim | |
function! yml#search(pos) | |
let indent = indent(a:pos) | |
let keys = [s:get_key(getline(a:pos))] | |
for n in range(line(a:pos), 1, -1) | |
if indent(n) == (indent - &tabstop) | |
call insert(keys, s:get_key(getline(n))) | |
let indent = indent - &tabstop | |
endif |
OlderNewer