Skip to content

Instantly share code, notes, and snippets.


Jessica Claire Edwards jsscclr

  • Sydney, Australia
View GitHub Profile
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
jsscclr /
Created May 14, 2016 — forked from indefinit/
A working cheat sheet for ffmpeg
#use case: converting image sequence to .mp4 video
#official documentation:
# An image sequence follows the pattern, defaultCanvas0-000000000.png (9 zeros)
# video codec is libx264
# pixel format yuv420p
# output file is named out.mp4
ffmpeg -i 'defaultCanvas0-%9d.png' -c:v libx264 -pix_fmt yuv420p out.mp4
#if you want your image sequence to start on a different number than index 0, use the -start_number parameter
jsscclr / randomcoords.cpp
Created May 14, 2016 — forked from bengfarrell/randomcoords.cpp
Random Coordinates C++ Node.JS AddOn
View randomcoords.cpp
#include <node.h>
#include <v8.h>
#include <stdio.h>
#include <stdlib.h>
using namespace v8;
Handle<Value> getRandomCoords2D(const Arguments& args) {
HandleScope scope;