View this code at http://livecoding.io/3758456
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
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 11.5%)", | |
"@gray-dark": "lighten(#000, 20%)", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 60%)", | |
"@gray-lighter": "lighten(#000, 93.5%)", | |
"@brand-primary": "#428bca", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
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
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 13.5%)", | |
"@gray-dark": "lighten(#000, 20%)", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 60%)", | |
"@gray-lighter": "lighten(#000, 93.5%)", | |
"@brand-primary": "#428bca", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
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
// | |
// はてなブログカスタマイズスクリプト | |
// | |
// 【作者】 S.F. | |
// | |
// 【機能】 | |
// ・ブログ記事の終わりにAdsenseバナー広告を最大3個表示する | |
// ・サイドバーのモジュール表示をBootstrapのNavbarに変換して表示する | |
// 【制約】 | |
// ・このスクリプトを実行するにはHTMLヘッダに下記モジュールをインポートする必要がある |
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
var fs = require("fs"); | |
var https = require("https"); | |
var q = require("q"); | |
var d3 = require("d3"); | |
var outputDir = "../html/"; | |
var apiKey = null; | |
var apiUrl = "https://api.tokyometroapp.jp/api/v2/"; | |
q.nfcall(fs.readFile, "apikey.json") |
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
var fs = require('fs'); | |
var https = require('https'); | |
var q = require('q'); | |
var jsdom = require('jsdom').jsdom; | |
var d3 = require('d3'); | |
var ect = require('ect'); | |
var outputDir = '../html/'; | |
var apiKey = null; | |
var apiUrl = 'https://api.tokyometroapp.jp/api/v2/'; |
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
@ECHO off | |
rem 元ファイルとgzファイルを比較して元ファイルが新しいものだけをgzip化 | |
rem もし.gzファイルがない場合は作る | |
rem 環境変数の遅延展開を可能にする | |
setlocal enabledelayedexpansion | |
for /R h:\pj\www\html %%1 in (*.*) do ( | |
if "%%~x1" NEQ ".gz" ( | |
set gzipf=%%1.gz | |
if EXIST !gzipf! ( | |
for %%g in (!gzipf!) do ( |
エドワード・マイブリッジの「Horse in motion」をInkscapeでトレースし、各馬をセル化したものをthree.jsのshapeに変換し表示しています。
下記のURLから動くデモが見れます。Windows 10 Tech Preview 9926 のIE11では動作しませんでした。ひょっとするとIE11ではそもそも動作しないのかもしれません。原因は不明ですが。。
http://bl.ocks.org/sfpgmr/855ad392435fcdd87584
※前回のバグは下記記事が糸口となり解決しました。
Converting SVG paths with holes to extruded shapes in three.js
OlderNewer