Skip to content

Instantly share code, notes, and snippets.

View erikccoder's full-sized avatar

erik-joeng erikccoder

View GitHub Profile
anonymous
anonymous / index.html
Created July 25, 2017 03:43
ZJEgNg
<html>
<body>
<div class="parallax-outer">
<div class="parallax">
<div class="parallax-inner">
<img src="http://via.placeholder.com/350x150/ff0" alt="">
<img src="http://via.placeholder.com/350x20/fff" alt="">
</div>
<div class="parallax-inner">
<img src="http://via.placeholder.com/350x150/ff0" alt="">
float[][] noiseMap;
ArrayList<Brush> brushes;
PImage imgMap;
int num = 500, min=2, max=50;
float noiseIncr = .01, drain=.05, brushSize;
void setup() {
imgMap = loadImage("http://everythingforpeople.files.wordpress.com/2011/11/7098-natalie-portman-black-and-white-earrings-closeup-face.jpg");
imgMap.resize(round(imgMap.width*0.5),round(imgMap.height*0.5));
@mhawksey
mhawksey / gist:1276293
Last active October 23, 2023 09:00
Google App Script to insert data to a google spreadsheet via POST or GET - updated version as per https://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software