- Download the py file above, save as
dump_webscript.py
- Go to
https://www.webscript.io/settings
and copyAPIKEY
- Replace
user
(line 10) with your Webscript login email - Replace
api_key
(line 11) withAPIKEY
- Activate venv:
virtualenv .venv && source .venv/bin/activate
pip install requests
python dump_webscript.py
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<!-- ADDED THESE LINES --> | |
<input type="file" class="js-fileElem" multiple accept="image/*" style="display:none"> | |
<a href="#" class="js-fileSelect">Select some files</a> | |
<!-- END ADDED THESE LINES --> |
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<input type="file" class="js-fileElem" multiple accept="image/*" style="display:none"> | |
<a href="#" class="js-fileSelect">Select some files</a> | |
<script src="https://www.gstatic.com/firebasejs/3.8.0/firebase.js"></script> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 wrapFlux(MainApp, availableActions, defaultStore) { | |
return React.createClass({ | |
getInitialState: function() { | |
return $.extend({}, defaultStore, this.props.additionalData); | |
}, | |
dispatcher: function(action, extras) { | |
// if an array of actions is passed in | |
if (Array.isArray(action)) { | |
var promiseArr = []; // Create Promise Array |
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
import React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
const generateRandomFunc = (functionRoot, cb = function(){}) => { | |
const functionName = `${functionRoot}_${Date.now()}`; | |
window[functionName] = (overrideCb = null) => { | |
delete window[functionName]; | |
if (overrideCb) { | |
overrideCb(); | |
return; |
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
(() => { // protect the lemmings! | |
const validate = () => { | |
throw new Error('This is a required arg'); | |
}; // validate | |
const uploadFiles = ( | |
fileSelectSel = validate(), | |
fileElemSel = validate(), | |
onFileChanged = validate() | |
) => { |
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<script src="https://www.gstatic.com/firebasejs/3.8.0/firebase.js"></script> | |
<script> | |
(() => { // protect the lemmings! | |
// Initialize Firebase | |
const config = { |
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<script src="https://www.gstatic.com/firebasejs/3.8.0/firebase.js"></script> | |
<script> | |
(() => { // protect the lemmings! | |
// Initialize Firebase | |
const config = { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder