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
/** | |
* Two Channel Receiver | |
* Author: Shawn Hymel (SparkFun Electronics) | |
* Date: Aug 24, 2017 | |
* | |
* Updated Sep 28, 2017 - Added direction multiplier (DIR) to | |
* account for transmitter controller directions. | |
* | |
* Connect a TB6612FNG and RC (PWM) receiver to the Arduino. | |
* Mixes two channels for arcade drive. |
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 Emitter = require("events").EventEmitter; | |
var five = require("../lib/johnny-five.js"); | |
var board = new five.Board(); | |
var emitter = new Emitter(); | |
function Encoder(opts) { | |
Emitter.call(this); | |
var last = 0; |
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
/** | |
* Fix for vw, vh, vmin, vmax on iOS 7. | |
* http://caniuse.com/#feat=viewport-units | |
* | |
* This fix works by replacing viewport units with px values on known screen sizes. | |
* | |
* iPhone 6 and 6 Plus cannot run iOS 7, so are not targeted by this fix. | |
* Target devices running iOS 8+ will incidentally execute the media query, | |
* but this will still produce the expected result; so this is not a problem. |
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
https://github.com/imamathwiz/atom-hide-files | |
https://github.com/P233/Atom-Syntax-highlighting-for-Sass | |
https://github.com/danielbrodin/atom-project-manager | |
https://github.com/Exter-N/recent-projects | |
https://github.com/bkbooth/color-gutter | |
https://github.com/emmetio/emmet-atom | |
https://github.com/DanBrooker/file-icons | |
https://github.com/sommerper/filetype-color | |
https://github.com/abe33/atom-color-highlight | |
https://github.com/akonwi/git-plus |
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
/** @jsx React.DOM */ | |
var STATES = [ | |
'AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FL', 'GA', 'HI', | |
'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', | |
'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', | |
'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY' | |
] | |
var Example = React.createClass({ |
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
So you want to accept payments online with PHP? | |
- Well, you probably don't want to handle that process manually. Too dangerous and risky. | |
- So learn the Stripe API. Works great! | |
- But you'll still need to setup SSL. So go learn how to do that. | |
- Stripe provides a PHP package, so download that through Composer. If you're not familiar with Composer, you'll need to learn that too. | |
- If you want the most flexibility, you'll want to manually create the payment form. | |
- So you'll need to send an AJAX request with a special token to Stripe's API. jQuery makes this easy, so go learn jQuery. | |
- Once the payment completes, you'll likely want to send the buyer a "Purchased" email, so learn how to send email. | |
- But don't make the user wait for the email to send. That takes too long. Add that to a background job. |