Skip to content

Instantly share code, notes, and snippets.

@ada-lovecraft
ada-lovecraft / opengraph.html
Created June 18, 2015 18:44
Giphy open graph
<meta property="fb:app_id" content="406655189415060">
<meta property="og:site_name" content="Giphy">
<meta property="og:url" content="http://giphy.com/gifs/rhuber-test-djeEV9Xji6zjgLXBxug">
<meta property="og:title" content="Animated GIF">
<meta property="og:description" content="The best GIFs are on Giphy">
<meta property="og:type" content="video.other">
<meta property="og:image" content="http://media.giphy.com/media/djeEV9Xji6zjgLXBxug/giphy.gif">
<meta property="og:image:width" content="912">
{"10001":{"count":0,"total":0},"10003":{"count":0,"total":0},"10005":{"count":0,"total":0},"11001":{"count":4,"total":878},"12001":{"count":0,"total":0},"12003":{"count":0,"total":0},"12005":{"count":0,"total":0},"12007":{"count":0,"total":0},"12009":{"count":7,"total":2578.33},"12011":{"count":5,"total":663.55},"12013":{"count":0,"total":0},"12015":{"count":2,"total":235.4},"12017":{"count":0,"total":0},"12019":{"count":0,"total":0},"12021":{"count":1,"total":189},"12023":{"count":0,"total":0},"12027":{"count":0,"total":0},"12029":{"count":0,"total":0},"12031":{"count":1,"total":20},"12033":{"count":0,"total":0},"12035":{"count":10,"total":12648.4},"12037":{"count":0,"total":0},"12039":{"count":0,"total":0},"12041":{"count":0,"total":0},"12043":{"count":0,"total":0},"12045":{"count":0,"total":0},"12047":{"count":0,"total":0},"12049":{"count":0,"total":0},"12051":{"count":0,"total":0},"12053":{"count":0,"total":0},"12055":{"count":0,"total":0},"12057":{"count":11,"total":6873.8},"12059":{"count":0,"total":0},
This file has been truncated, but you can view the full file.
[
{"zip":"00601","geoId":"72001","countyId":"001","stateId":"72"},
{"zip":"00601","geoId":"72141","countyId":"141","stateId":"72"},
{"zip":"00602","geoId":"72003","countyId":"003","stateId":"72"},
{"zip":"00603","geoId":"72005","countyId":"005","stateId":"72"},
{"zip":"00606","geoId":"72093","countyId":"093","stateId":"72"},
{"zip":"00606","geoId":"72121","countyId":"121","stateId":"72"},
{"zip":"00606","geoId":"72153","countyId":"153","stateId":"72"},
{"zip":"00610","geoId":"72003","countyId":"003","stateId":"72"},
{"zip":"00610","geoId":"72011","countyId":"011","stateId":"72"},
This file has been truncated, but you can view the full file.
{"type":"Topology","objects":{"zip_codes_for_the_usa":{"type":"GeometryCollection","geometries":[{"type":"Polygon","properties":{"name":"MT MEADOWS AREA","zip":"00012","state":"CA"},"arcs":[[0,1,2]]},{"type":"Polygon","properties":{"name":"WEST PIMA COUNTY","zip":"00014","state":"AZ"},"arcs":[[3,4,5,6,7]]},{"type":"Polygon","properties":{"name":"CORONADO NTL FOREST","zip":"00015","state":"AZ"},"arcs":[[8,9,10,11,12,13,14,15,16,17,18]]},{"type":"Polygon","properties":{"name":"SEQUOIA NATIONAL FOREST","zip":"00016","state":"CA"},"arcs":[[19,20,21,22]]},{"type":"Polygon","properties":{"name":"NORTHEAST FRESNO COUNTY","zip":"00017","state":"CA"},"arcs":[[23,24,25,26,27,28,29]]},{"type":"Polygon","properties":{"name":"LOS PADRES NTL FOREST","zip":"00018","state":"CA"},"arcs":[[30,31,32,33,34,35,36,37]]},{"type":"Polygon","properties":{"name":"LASSEN NTL FOREST","zip":"00019","state":"CA"},"arcs":[[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54]]},{"type":"Polygon","properties":{"name":"SIERRA NATIONAL FOREST",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ada-lovecraft
ada-lovecraft / PhaserFillscreen.js
Created April 17, 2018 09:01 — forked from netcell/PhaserFillscreen.js
Setting for Phaser.js to fill the screen on web browsers and Cocoon.js
/** Config part */
var FIXED_SIZE = 600;
var FIXED_MEASURE = 'Height';
/** Name maping */
var fixedName = FIXED_MEASURE;
var resName = fixedName === 'Height' ? 'Width' : 'Height';
var FIXED_NAME = fixedName.toUpperCase();
var RES_NAME = resName.toUpperCase();
@ada-lovecraft
ada-lovecraft / WindowManager.js
Last active October 16, 2017 09:33
Electron Window Manager
const {BrowserWindow} = require('electron')
const {lebab, keys} = require('./utils')
const debug = require('debug')
const log = debug('WindowManager:log')
var windowID = 0
class WindowManager {
constructor() {
this.windows = {}
// Author: Ada Lovecraft
// Title: Polygonal Exclusion
#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.14159265358979323846
uniform vec2 u_resolution;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: '"Fira Code","SF Mono", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: '#EBCB8B',