This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imageLayer = new Layer x:0, y:0, width:128, height:128 | |
imageLayer.on "change:x", () -> | |
print imageLayer.x | |
imageLayer.on Events.Click, () -> | |
imageLayer.animate | |
properties: | |
x: imageLayer.x + 100 | |
time: .4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string = "Oh Hey Dudes" | |
textfield = new Layer | |
width: Screen.width | |
height: 50 | |
backgroundColor: "black" | |
index = 0 | |
typeCharacter = () -> | |
textfield.html = string[0..index] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Your code | |
for (newColNumber = _j = 0; _j < 9; newColNumber = ++_j) { | |
SecondaryField = new Layer({ | |
width: 1080, | |
height: 240, | |
backgroundColor: "#000000", | |
shadowY: 2, | |
shadowBlur: 5, | |
borderRadius: "6px", | |
y: colNumber * 242 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am msfeldstein on github. | |
* I am feldstein (https://keybase.io/feldstein) on keybase. | |
* I have a public key whose fingerprint is 6854 D75E EE97 E506 6D0C 323D B7BF 557D 8213 8A69 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/Applications/Framer Studio.app/Contents/Resources/python/vendor/packages.zip/tornado/web.py", line 1334, in _execute | |
result = yield result | |
File "/Applications/Framer Studio.app/Contents/Resources/python/vendor/packages.zip/tornado/gen.py", line 628, in run | |
value = future.result() | |
File "/Applications/Framer Studio.app/Contents/Resources/python/vendor/packages.zip/tornado/concurrent.py", line 109, in result | |
raise_exc_info(self._exc_info) | |
File "/Applications/Framer Studio.app/Contents/Resources/python/vendor/packages.zip/tornado/gen.py", line 175, in wrapper | |
yielded = next(result) | |
File "/Applications/Framer Studio.app/Contents/Resources/python/vendor/packages.zip/tornado/web.py", line 2110, in get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Who is behind Canopy? | |
We're a small, self-funded team of 4 based in San Francisco and Toronto. | |
#How do you make money? | |
Canopy participates in the Amazon Services LLC Associates Program, an affiliate advertising program designed to help sites earn commissions by linking to Amazon. More simply put, this means when you find and purchase a product from Canopy, we receive a small percentage for referring the sale. This revenue helps us run the site, and has allowed us to self-fund our development. | |
#How do I get my products on Canopy? | |
You are more than welcome to add your own products to Canopy, as long as they are available for purchase on Amazon. To bring your product into our catalog, try either our product extension or bookmarklet. You can find all the information you need right here [canopy.co/add-products]. Once you’ve added your products, send a note to [shannon@canopy.co], to discuss merchandising and partnership opportunities. | |
#Where do all the products come from? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Sweep | |
by BARRAGAN <http://barraganstudio.com> | |
This example code is in the public domain. | |
modified 8 Nov 2013 | |
by Scott Fitzgerald | |
http://arduino.cc/en/Tutorial/Sweep | |
*/ | |
#include <Servo.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var twgl = require('twgl.js') | |
var canvas = document.createElement('canvas') | |
document.body.appendChild(canvas) | |
const vtx = ` | |
attribute vec4 position; | |
void main() { | |
gl_Position = position; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Modified version of something Dubiously created by Adrian Cooney | |
* http://adriancooney.github.io | |
* adapted from https://github.com/adriancooney/console.snapshot | |
*/ | |
(function(console) { | |
function getBox(width, height) { | |
return { | |
string: "+", | |
style: "font-size: 1px; padding: " + Math.floor(height/2) + "px " + Math.floor(width/2) + "px; line-height: " + height + "px;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logThreeInstances(className) { | |
threeTypeMap[className] = 0; | |
const orig = THREE[className]; | |
const tmp = function() {}; | |
tmp.prototype = THREE[className].prototype; | |
function newConstructor() { | |
orig.apply(this, arguments) |
OlderNewer