Skip to content

Instantly share code, notes, and snippets.

// by Etienne JACOB
// motion blur template by beesandbombs
// needs opensimplexnoise code in another tab
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
@borndangerous
borndangerous / app.js
Created January 1, 2016 18:57 — forked from jmdobry/app.js
js-data + js-data-firebase + js-data-localstorage
var fb = new DSFirebaseAdapter({
basePath: 'https://my-app.firebase.io'
});
var ls = new DSLocalStorageAdapter();
var store = new JSData.DS({
// try firebase first, otherwise try offline data
fallbackAdapters: ['fb', 'ls'],
// After creating an item, sync it to localStorage
@enjalot
enjalot / README.md
Last active November 14, 2023 01:56
aframe + d3 test: text labels

Testing out aframe.io with d3.js. use WASD keys to "walk" around the space.

Since AFrame works with DOM elements, you can use d3's selection API to generate and modify 3D elements, as well as handle "mouse" events (including the VR friendly "fuse cursor") as if it was SVG.

Built with blockbuilder.org

forked from enjalot's block: aframe + d3 test

@borndangerous
borndangerous / gist:db3c2165ab1e654daba0
Created October 22, 2015 06:34 — forked from felixhageloh/gist:34645a899a0f22f583bb
Pure js widget for Übersicht
command: "echo Hello World!",
refreshFrequency: 5000,
render: function (output) {
return "<div><h1>" + output + "</h1></div>";
},
style: " \n\
top: 20px \n\
@kylemcdonald
kylemcdonald / ex_a_crowd_paths_3.pyde
Created August 17, 2015 20:11
Exhausting a Crowd path visualization, by Charlotte Stiles.
import csv
import os
import string
from path import*
def setup():
global finalList
global move
colorMode(HSB)
@seyna
seyna / dug.js
Created February 23, 2015 14:21
<script>
dug({
endpoint: 'http://api.dribbble.com/players/justinmezzell/shots',
template: '<ul>\
{{#shots}}\
<li>\
<a href="{{url}}" title="{{title}}">\
<img src="{{image_400_url}}" alt="Image of {{title}}">\
</a>\
</li>\
@andymatuschak
andymatuschak / MultiDirectionAdjudicatingScrollView.swift
Created January 26, 2015 19:31
Source for the Khan Academy app's unusual scrolling interactions
//
// MultiDirectionAdjudicatingScrollView.swift
// Khan Academy
//
// Created by Andy Matuschak on 12/16/14.
// Copyright (c) 2014 Khan Academy. All rights reserved.
//
import UIKit
import UIKit.UIGestureRecognizerSubclass
@nfarrar
nfarrar / woodworking.md
Last active May 14, 2018 01:13
Woodworking & Microshop Design

Woodworking

I'm completely new to home ownership & woodworking. I've tried to tackle a few projects myself & bought a couple tools in the process, but mostly still have no idea what I'm doing. My garage is a currently a complete mess. I've put some stuff up on the walls to make more space and start organizing, but I don't have any decent shelves and the "workbench" is currently just a storage area (leaving me no place to work). The surface of the workbench is warped and there are no vices or clamps making it a less than ideal work surface anyway.

I've started doing some research and dumping the notes here as I (very slowly) make progress.

Contents

@philippschmitt
philippschmitt / countPhotosForGeoLocation
Last active May 13, 2020 22:02
Count all photos that are available on Flickr and Panoramio for a specific geo fence
/*
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 (http://en.wikipedia.org/wiki/Fernsehturm_Berlin)
Example URL: http://piccounter-philippschmitt.rhcloud.com/?lat=52.520732&lon=13.409537&latRes=0.00015&lonRes=0.0003&flickrKey=60d03369d3e92b4578c8f2df2de5af66
@andymatuschak
andymatuschak / CollectionViewDataSource.swift
Last active February 12, 2021 09:44
Type-safe value-oriented collection view data source
//
// CollectionViewDataSource.swift
// Khan Academy
//
// Created by Andy Matuschak on 10/14/14.
// Copyright (c) 2014 Khan Academy. All rights reserved.
//
import UIKit