Skip to content

Instantly share code, notes, and snippets.


Jessica Claire Edwards jsscclr

  • Sydney, Australia
View GitHub Profile
jsscclr /
Created Sep 3, 2016 — forked from markusfisch/
Convert Markdown files to simple web presentations

Markdown To Takahashi Presentation

[BASH][bash] script to create a single file [Takahashi][takahashi] web presentation from a [Markdown][markdown] document.


You'll need a [Markdown][markdown] converter named markdown in your

jsscclr /
Created Jul 25, 2016 — forked from DrLulz/
Grab Q/A from HTML source and create Anki Cards directly.
import os
import sys
import csv
from operator import itemgetter
from bs4 import BeautifulSoup
from anki import Collection as aopen
usmle_rx = open("/Users/drlulz/Desktop/test.html",'r').read()
jsscclr / GAME_MASTER_v0_1.protobuf
Created Jul 16, 2016 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
View GAME_MASTER_v0_1.protobuf
Result: 1
Items {
Badge {
BadgeRanks: 4
Targets: "\nd\350\007"
Items {
jsscclr /
Created Jul 15, 2016 — forked from xem/
Maths & trigonometry cheat sheet for 2D games


  • o = [xo = 0, yo = 0] is the origin
  • A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
  • lengths are in any unit (ex: pixels)
  • code snippets are in JavaScript

Degrees to radians

angleRad = angleDeg * Math.PI / 180;

jsscclr / d3-server.js
Created Jul 6, 2016 — forked from caged/d3-server.js
Directly render and serve d3 visualizations from a nodejs server.
View d3-server.js
// Start `node d3-server.js`
// Then visit http://localhost:1337/
var d3 = require('d3'),
http = require('http')
http.createServer(function (req, res) {
// Chrome automatically sends a requests for favicons
// Looks like isn't
// fixed or this is a regression.
jsscclr / countPhotosForGeoLocation
Created Jul 6, 2016 — forked from philippschmitt/countPhotosForGeoLocation
Count all photos that are available on Flickr and Panoramio for a specific geo fence
View countPhotosForGeoLocation
This script counts all photos that are available on Flickr and Panoramio for a specific geo fence and returns a JSON object with the data.
For convenience it's embedded in a little node.js server so that you can upload it to your server and use it as an API.
Here's an example url with all query attributes prefilled. Please use your own Flickr API key!
The location is the Berlin TV Tower (
Example URL:
jsscclr / gist:67e06020cf16563badcde3b7cff2ada7
Created Jul 5, 2016 — forked from mattdesl/gist:10218005
pseudo-code for perlin-noise based generative impressionist paintings
View gist:67e06020cf16563badcde3b7cff2ada7
for each particle
x, y = particle.position
color = sample( colorMap, x, y )
noise = sample( noiseMap, x, y )
angle = noise * PI * 2
particle.velocity.add( cos(angle), sin(angle) )
jsscclr /
Created Jun 28, 2016 — forked from paulirish/
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.


Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
jsscclr / gist:9820fb32ddd823d626dcf0d7ca75462c
Created May 23, 2016 — forked from loretoparisi/gist:fe6e5cf889bb2c8f2099
Basic Javascript port of the MMCQ (modified median cut quantization) - quantize.js Copyright 2008 Nick Rabinowitz.
View gist:9820fb32ddd823d626dcf0d7ca75462c
* quantize.js Copyright 2008 Nick Rabinowitz.
* Licensed under the MIT license:
// fill out a couple protovis dependencies
* Block below copied from Protovis:
* Copyright 2010 Stanford Visualization Group
* Licensed under the BSD License:
jsscclr / .block
Created May 23, 2016 — forked from mbostock/.block
Lab and HCL Color Spaces
View .block
license: gpl-3.0