This file contains hidden or 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
| class Promise | |
| def initialize(&cb) | |
| @thread = Thread.new { | |
| cb.call( | |
| lambda {|result| resolve(result)}, | |
| lambda {|error| reject(error)} | |
| ) | |
| } | |
| end |
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit \
&& chmod +x docker-machine-driver-hyperkit \
&& sudo mv docker-machine-driver-hyperkit /usr/local/bin/ \
&& sudo chown root:wheel /usr/local/bin/docker-machine-driver-hyperkit \
&& sudo chmod u+s /usr/local/bin/docker-machine-driver-hyperkitbrew install kubectl minikube
This file contains hidden or 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
| - proxy for links | |
| - human-memorable gist (like cp.glitch.me) | |
| - tallybox in rust | |
| - |
For SSH: (need SSH public key copied into ~/git-server/keys folder)
jkarlos/git-server-docker
For HTTP:
cirocosta/gitserver-http
This file contains hidden or 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
| #!/bin/bash | |
| yarn add \ | |
| express koa body-parser express-session dotenv multer ejs \ | |
| winston morgan helmet \ | |
| react react-dom react-router-dom history redux react-redux mobx mobx-react redux-thunk \ | |
| redux-devtools redux-logger \ | |
| react-swipeable \ | |
| webpack webpack-dev-server \ | |
| babel-core babel-loader babel-jest babel-plugin-syntax-jsx babel-preset-env @babel/core \ |
This file contains hidden or 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
| /* styles */ | |
| /* called by your view template */ | |
| /* You might want to try something fancier: */ | |
| /* less: http://lesscss.org/ */ | |
| * { | |
| box-sizing: border-box; | |
| } |
This file contains hidden or 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
| const promisify = (fn) => function() { | |
| const args = Array.prototype.slice.call(arguments); | |
| return new Promise((resolve, reject) => { | |
| // Access resolve/reject. | |
| function callback() { | |
| const results = Array.prototype.slice.call(arguments); | |
| if (results[0]) { | |
| reject(results[0]); |
This file contains hidden or 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, { PureComponent } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import inject from './injector'; | |
| class Hello extends PureComponent { | |
| render() { | |
| const name = this.props.nameService.getName(); | |
| return ( | |
| <div>Hello, { name }</div> | |
| ); |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # Generates bcrypt password | |
| # USAGE | |
| # | |
| # $ ./genpass.sh | |
| # Password: | |
| # | |
| # or (also sets password for user in .credentials.json) | |
| # |