This file contains hidden or 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
| <?php | |
| $c = 5.0 * ($deg - 32.0) / 9.0; // 摂氏 | |
| $f = 9.0 / (5.0 * $deg) + 32.0; // 華氏 | |
| printf('%.1f', $c); | |
| printf('%.1f', $f); |
This file contains hidden or 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
| package com.wakuworks.test; | |
| import android.app.Activity; | |
| import android.content.res.Resources; | |
| import android.os.Bundle; | |
| import android.view.LayoutInflater; | |
| import android.widget.LinearLayout; | |
| // 例)QuickSearchBox の表示 | |
| // 参考:http://mpigulski.blogspot.com/2011/03/accessing-comandroidinternalr-resources.html |
This file contains hidden or 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
| try_files $uri $uri/ /index.php$uri; | |
| location ~ ".+\.php($|/.*)" { | |
| if ( -f /home/dotcloud/current/maintenance) { | |
| return 503; | |
| } | |
| fastcgi_pass unix:/var/dotcloud/php5-fpm.sock; | |
| include fastcgi_params; | |
| include /home/dotcloud/current/*fastcgi.conf; |
This file contains hidden or 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
| location = /favicon.ico { | |
| log_not_found off; | |
| access_log off; | |
| } | |
| location = /robots.txt { | |
| allow all; | |
| log_not_found off; | |
| access_log off; | |
| } | |
| location ~ /\. { |
This file contains hidden or 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
| var LINE = require('./line.js'); | |
| var line = new LINE(); | |
| var email = 'your email'; | |
| var password = 'your password'; | |
| line.login(email, password, function(error, result) { | |
| if (error) { | |
| return; | |
| } | |
This file contains hidden or 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
| var aachan = new Bvh(); | |
| var nocchi = new Bvh(); | |
| var kashiyuka = new Bvh(); | |
| aachan.load({ | |
| src: "./bvh/aachan.bvh", | |
| complete: function(xhr) { | |
| console.log("あーちゃんの BVH データ読み込み完了"); | |
| nocchi.load({ | |
| src: "./bvh/nocchi.bvh", |
This file contains hidden or 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
| for(var i=1;i<=100;i++)console.log((i%3?"":"Fizz")+(i%5?"":"Buzz")||i) | |
| i=0;while(++i<=100)console.log((i%3?"":"Fizz")+(i%5?"":"Buzz")||i) |
This file contains hidden or 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
| // 個別で js を minify して gzip したかったので、こんな感じになった | |
| // ファイル名などにスペースが入ってた時どうするのか | |
| module.exports = function(grunt) { | |
| 'use strict'; | |
| var src = 'shared/js/*.js', | |
| files = grunt.file.expandFiles(src), | |
| suffix = '.min', | |
| minFiles = {}, | |
| gzFiles = {}; |
This file contains hidden or 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
| // jQuery、timeline.js を事前に読み込んでおく必要あり | |
| // | |
| // timeline.js について | |
| // - http://hitsujiwool.tumblr.com/post/31191259501/timeline-js | |
| // - https://github.com/hitsujiwool/timeline | |
| // 使い方1:一括指定して実行 | |
| var totalFrames = 200, | |
| tl = $("div").timeline(totalFrames) |
This file contains hidden or 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
| module.exports = function(grunt) { | |
| 'use strict'; | |
| var | |
| /** | |
| * ルートパス | |
| * | |
| * @constant | |
| * @type {string} |