Skip to content

Instantly share code, notes, and snippets.

@bartaz
bartaz / gist:1119041
Created August 1, 2011 21:22
Convert JavaScript number to string of 64bit double precision floating point representation (IEEE 754)
// Convert a JavaScript number to IEEE-754 Double Precision
// value represented as an array of 8 bytes (octets)
//
// http://cautionsingularityahead.blogspot.com/2010/04/javascript-and-ieee754-redux.html
function toIEEE754(v, ebits, fbits) {
var bias = (1 << (ebits - 1)) - 1;
// Compute sign, exponent, fraction
@bartaz
bartaz / LICENSE.txt
Created February 10, 2012 07:32 — forked from cyberstream/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Eli Mitchell <http://www.cyberstream.us>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@bartaz
bartaz / dabblet.css
Created April 20, 2012 20:01
Learning to teach
/**
* Learning to teach
*
* by Bartek Szopka @bartaz
* Front-Trends 2012
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {
/**
* uczyć
*
* Slide from "Learning to teach" presentation by Bartek Szopka
* Front-Trends 2012
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {
@bartaz
bartaz / dabblet.css
Created April 20, 2012 20:25
uczyć się
/**
* uczyć się
*
* Slide from "Learning to teach" presentation by Bartek Szopka
* Front-Trends 2012
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {
@bartaz
bartaz / dabblet.css
Created April 20, 2012 20:36
uczyć się uczyć
/**
* uczyć się uczyć
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {
height: 100%;
box-sizing: border-box;
}
@bartaz
bartaz / dabblet.css
Created April 21, 2012 19:11
Tell me and I'll forget, show me and I may remember, involve me and I'll understand
/**
* Tell me and I'll forget, show me and I may remember, involve me and I'll understand
*
* Slide from "Learning to teach" presentation by Bartek Szopka
* Front-Trends 2012
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {
@bartaz
bartaz / dabblet.css
Created April 21, 2012 19:45
When your job is your passion, you never work
/**
* When your job is your passion, you never work
*
* Slide from "Learning to teach" presentation by Bartek Szopka
* Front-Trends 2012
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {
@bartaz
bartaz / dabblet.css
Created April 21, 2012 19:58
We are learning all out lives, and we die stupid
/**
* We are learning all out lives, and we die stupid
*
* Slide from "Learning to teach" presentation by Bartek Szopka
* Front-Trends 2012
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {
@bartaz
bartaz / dabblet.css
Created April 21, 2012 21:34
With great power comes great responsibility
/**
* With great power comes great responsibility
*
* Slide from "Learning to teach" presentation by Bartek Szopka
* Front-Trends 2012
*/
@import url(http://fonts.googleapis.com/css?family=The+Girl+Next+Door);
html, body {