chmod +x convert.pe
./conver.pe Your-Font.ttf
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 | |
| // | |
| // Development server. | |
| // | |
| // Requires PHP 5.4+, with built-in web-server feature: | |
| // http://php.net/manual/en/features.commandline.webserver.php | |
| // | |
| // Run it through console via: | |
| // $ php -S localhost:8000 ./dev_server.php | |
| // |
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
| require 'json' | |
| require 'psd' | |
| def is_power_of_two(x) | |
| n = x.to_i | |
| while (((x % 2) == 0) && x > 1) | |
| x = x/2 | |
| end | |
| x == 1 && n != 1 | |
| end |
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
| Array.prototype.shuffle = function() { | |
| for(var j, x, i = this.length; i; j = Math.floor(Math.random() * i), x = this[--i], this[i] = this[j], this[j] = x); | |
| return this; | |
| } |
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
| [ | |
| { | |
| "_id":"56490c18d9275a0003000000", | |
| "author":null, | |
| "created_at":"2015-11-15T22:50:00.170Z", | |
| "description":"A weekly discussion by Ruby developers about programming, life, and careers.", | |
| "image":"https://s3.amazonaws.com/devchat.tv/ruby-rogues-thumb.jpg", | |
| "keywords":[ | |
| "Business", | |
| "Careers", |
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
| Number.prototype.pad = function(size) { | |
| var s = String(this); | |
| while (s.length < (size || 2)) {s = "0" + s;} | |
| return s; | |
| } | |
| (1).pad(3) // => "001" | |
| (10).pad(3) // => "010" | |
| (100).pad(3) // => "100" |
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
| html = Faraday.get("http://ogp.me").body | |
| if (data = html.scan(/property=["|']og:(.*)["|'].*content=["|'](.*)["|']/)) | |
| og = OpenStruct.new(Hash[ data ]) | |
| puts og.inspect | |
| end |
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
| node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../gulpfile.js --cwd ../../ build |
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
| // three.js JSON Atlas Loader | |
| // Requires: whatwg-fetch (https://github.com/github/fetch) | |
| var materials = {} | |
| fetch('images/spritesheet.json').then(function(response) { | |
| return response.json() | |
| }).then(function(json) { | |
| var atlasTexture = THREE.ImageUtils.loadTexture('images/' + json.meta.image, undefined, function() { |