Demo of multipart form/file uploading with hapi.js.
npm install
npm run setup
npm run server
Then ...
| 'use strict'; | |
| var React = require('react'); | |
| var BzIframe = React.createClass({ | |
| propTypes: { | |
| src: React.PropTypes.string.isRequired, | |
| onLoad: React.PropTypes.func | |
| }, |
| <label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
| <select id="country" name="country" class="form-control"> | |
| <option value="Afghanistan">Afghanistan</option> | |
| <option value="Åland Islands">Åland Islands</option> | |
| <option value="Albania">Albania</option> | |
| <option value="Algeria">Algeria</option> | |
| <option value="American Samoa">American Samoa</option> | |
| <option value="Andorra">Andorra</option> | |
| <option value="Angola">Angola</option> |
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
| <?php | |
| /** | |
| * Send a Message to a Slack Channel. | |
| * | |
| * In order to get the API Token visit: | |
| * | |
| * 1.) Create an APP -> https://api.slack.com/apps/ | |
| * 2.) See menu entry "Install App" | |
| * 3.) Use the "Bot User OAuth Token" |
| Let's lool at the following example structure for RESTful API using Node.js, Express.js included tesing | |
| app/ | |
| |---models/ | |
| |---controller/ | |
| |---helpers/ | |
| |---middlewares/ | |
| |---tests/ | |
| |---models/ | |
| |---controllers/ |
| <?php | |
| /** | |
| * http://stackoverflow.com/questions/11305797/remove-zero-width-space-characters-from-a-javascript-string | |
| * U+200B zero width space | |
| * U+200C zero width non-joiner Unicode code point | |
| * U+200D zero width joiner Unicode code point | |
| * U+FEFF zero width no-break space Unicode code point | |
| */ | |
| function commarize() | |
| { | |
| // 1e6 = 1 Million, begin with number to word after 1e6. | |
| if (this >= 1e6) | |
| { | |
| var units = | |
| [ | |
| "Million", | |
| "Billion", | |
| "Trillion", |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.