git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| // Get binary file using XMLHttpRequest | |
| function getBinary(file) { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open("GET", file, false); | |
| xhr.overrideMimeType("text/plain; charset=x-user-defined"); | |
| xhr.send(null); | |
| return xhr.responseText; | |
| } | |
| // Base64 encode binary string |
| Verifying my Blockstack ID is secured with the address 1yJtpM1dKRx3Ls6XWk785iwrvCCi216od https://explorer.blockstack.org/address/1yJtpM1dKRx3Ls6XWk785iwrvCCi216od |
| /* | |
| Base.js, version 1.1a | |
| Copyright 2006-2010, Dean Edwards | |
| License: http://www.opensource.org/licenses/mit-license.php | |
| */ | |
| var Base = function() { | |
| // dummy | |
| }; |
| function tribonacci(signature, n) { | |
| if (n <= 3) { | |
| return signature.length === 3 ? signature.slice(0, n) : signature; | |
| } | |
| const numbers = n < 3 ? signature.slice(0, n) : signature.slice(-3); | |
| const sum = numbers.reduce((acc, curr) => acc + curr); | |
| return tribonacci([...signature, sum], n - 1); | |
| } |
| # Apache Server Configs v2.15.0 | MIT License | |
| # https://github.com/h5bp/server-configs-apache | |
| # (!) Using `.htaccess` files slows down Apache, therefore, if you have | |
| # access to the main server configuration file (which is usually called | |
| # `httpd.conf`), you should add this logic there. | |
| # | |
| # https://httpd.apache.org/docs/current/howto/htaccess.html | |
| # ###################################################################### |
| 'use strict'; | |
| function privateProps(obj, filterFunc) { | |
| var handler = { | |
| get: function get(obj, prop) { | |
| if (!filterFunc(prop)) { | |
| var value = Reflect.get(obj, prop); | |
| // auto-bind the methods to the original object, so they will have unrestricted access to it via 'this'. | |
| if (typeof value === 'function') { | |
| value = value.bind(obj); |
| var events = (function(){ | |
| var topics = {}; | |
| var hOP = topics.hasOwnProperty; | |
| return { | |
| subscribe: function(topic, listener) { | |
| // Create the topic's object if not yet created | |
| if(!hOP.call(topics, topic)) topics[topic] = []; | |
| // Add the listener to queue |
| 'use strict'; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| var _assign = require('babel-runtime/core-js/object/assign'); | |
| var _assign2 = _interopRequireDefault(_assign); |
| function buildReduxContainer(ChildComponentClass, mapStateToProps) { | |
| return class Container extends Component { | |
| render() { | |
| const { state } = this.context.store.getState(); | |
| const props = mapStateToProps(state); | |
| return <ChildComponentClass {...this.props} {...props} />; | |
| } | |
| } |