Inspired by http://dribbble.com/shots/1244676-Cloud-Storage/attachments/168917 - looks best in chrome - blog post about gradients & shadows here http://4waisenkinder.de/blog/2013/09/28/using-gradient-and-shadows-with-d3-dot-js/
I hereby claim:
- I am jimfrem99 on github.
- I am jimfyyca (https://keybase.io/jimfyyca) on keybase.
- I have a public key whose fingerprint is FDE2 0DF4 3E9A 00A7 84FD 5CF2 D4D5 3BCE 3A03 F93D
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
<div id="bleep"></div> | |
<div id="text"></div> | |
<div id="code"></div> | |
<div id="beep"></div> |
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
# -*- coding: utf-8 -*- | |
import sys | |
# Convert latitude and longitude to Maidenhead grid locators. | |
# | |
# Arguments are in signed decimal latitude and longitude. For example, | |
# the location of my QTH Palo Alto, CA is: 37.429167, -122.138056 or | |
# in degrees, minutes, and seconds: 37° 24' 49" N 122° 6' 26" W | |
# |
This snippet showcases the gamepad simulator code.
The demo reads the standard values of the gamepad (using navigator.getGamepads()
and reading the Gamepad interface) without needing a physical game controller connected to the computer/browser.
It uses instead a virtual gamepad generated with gamepad-simulator (more info on GitHub), which triggers the gamepad events and simulates the getGamepads
navigator function.
A Pen by Alvaro Montoro on CodePen.
A Pen by Aaron Farrar on CodePen.
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
console.log('Client-side code running'); | |
const button = document.getElementById('myButton'); | |
button.addEventListener('click', function(e) { | |
console.log('button was clicked'); | |
fetch('/clicked', {method: 'POST'}) | |
.then(function(response) { | |
if(response.ok) { | |
console.log('click was recorded'); |
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
#include "MeMegaPi.h" | |
#include "Arduino.h" | |
#include "SoftwareSerial.h" | |
// Define the pins/outputs that map to the individual motors | |
#define WHEEL_LF = PORT2B // Set to the pin for LEFT FRONT wheel | |
#define WHEEL_RF = PORT1A // Set to the pin for RIGHT FRONT wheel | |
#define WHEEL_LR = PORT2A // Set to the pin for LEFT REAR wheel | |
#define WHEEL_RR = PORT1B // Set to the pin for RIGHT REAR wheel |