Updated: Just use qutebrowser (and disable javascript). The web is done for.
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 "./compiler/crystal/**" | |
| while line = gets | |
| compiler = Crystal::Compiler.new | |
| program = Crystal::Program.new | |
| program.target_machine = compiler.target_machine | |
| prelude = program.normalize(Crystal::Require.new("prelude")) |
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
| /** | |
| * Bitwise Mathematics Utilities | |
| * | |
| * A collection of fast bitwise operations for integer mathematics. | |
| * These functions prioritize performance over readability and should be used | |
| * when micro-optimizations are critical (game engines, real-time applications). | |
| * | |
| * References: | |
| * - http://michalbe.blogspot.com.br/2013/03/javascript-less-known-parts-bitwise.html | |
| * - http://jsperf.com/bitwise-vs-math-object |
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
| #References: | |
| #http://forums.autodesk.com/t5/installation-licensing/installing-maya-on-ubuntu/td-p/4905036 | |
| #http://askubuntu.com/questions/392806/installing-maya-on-ubuntu-linux | |
| #https://gist.github.com/insomniacUNDERSCORElemon/5555214 | |
| #http://nealbuerger.com/2013/05/ubuntu-13-04-maya-2014-install-script/ | |
| #http://www.nkoubi.com/blog/tutorial/how-to-install-autodesk-maya-2011-on-debian-ubuntu/ | |
| #http://help.autodesk.com/view/MAYAUL/2015/ENU/?guid=GUID-E7E054E1-0E32-4B3C-88F9-BF820EB45BE5 | |
| #http://www.andrewhazelden.com/blog/2014/10/autodesk-nlm-licensing-issues-with-maya-2015-and-max-2015/ |
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
| # gem 'rails' | |
| gem "activerecord" | |
| gem "actionpack" | |
| gem "actionview" | |
| gem "actionmailer" | |
| gem "activejob" | |
| gem "activesupport" | |
| gem "railties" | |
| gem "sprockets-rails" | |
| gem 'sqlite3' |
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 fs = require('fs'), | |
| glob = require('glob'), | |
| hex2rgb = require('color-functions/lib/hex2rgb'), | |
| os = require('os'), | |
| svgMesh3d = require('svg-mesh-3d'), | |
| xpath = require('xpath.js'), | |
| DOMParser = require('xmldom').DOMParser; | |
| function simplicialComplexToObj(mesh) { | |
| var result = ''; |
This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
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 lat, lon; | |
| if ('geolocation' in navigator) { | |
| navigator.geolocation.getCurrentPosition(function(position) { | |
| lat = position.coords.latitude; | |
| lon = position.coords.longitude; | |
| console.log('lat: ' + lat); | |
| console.log('lon: ' + lon); | |
| console.log('geohash: ' + geohash(lat, 0) + '' + geohash(lon, 0)); |
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
| # An R script to estimate MQ gas sensors correlation curve and compute Ro, min and max Rs/Ro | |
| # | |
| # Copyright (c) Davide Gironi, 2016 | |
| # | |
| # Released under GPLv3. | |
| # Please refer to LICENSE file for licensing information. | |
| # How to use this script: | |
| # 1) set limits as datasheet curve ("xlim" and "ylim") | |
| # ex. |
I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.
I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.
Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.