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
| echo "zsh && exit 0" >> ~/.bash_profile && | |
| curl -L http://install.ohmyz.sh | sh |
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 | |
| # Run update | |
| apt-get update | |
| wait | |
| # Install build-essentials | |
| apt-get --yes --force-yes install build-essential | |
| wait |
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
| // Client-side | |
| io.connect({ | |
| forceNew: true, | |
| transports: [ 'websocket' ] | |
| }); | |
| // Server-side | |
| var io = require('socket.io'); | |
| var app = require('express')(); | |
| var server = require('http').createServer(app); |
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
| /* global: indexedDB, IDBKeyRange */ | |
| // index.js | |
| // Provides easy interaction with indexedDB | |
| // --- | |
| // Part of the Riggr SPA framework <https://github.com/Fluidbyte/Riggr> and released | |
| // under the MIT license. This notice must remain intact. | |
| (function (root, factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| define([], factory); | |
| } else if (typeof exports === 'object') { |
Add a Slash command to easily share secrets on Slack.
There are three components to using this Webtask
This document is a quick-start dive into using Git for version control, branching, and collaborative work on projects. It is intended to be a primer on core concepts. For more information, see the Git Docs.
The best way to use Git + Github (or any Git hosting) is via SSH. To do this you need an SSH Key (Mac/Linux):
ssh-keygen
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 { observable, computed, action } from 'mobx' | |
| import TodoModel from './TodoModel' | |
| export default class TodoListModel { | |
| @observable todos = [] | |
| constructor () { | |
| try { | |
| this.todos = JSON.parse(window.localStorage.getItem('todos')) |
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/sh | |
| sudo xrandr --newmode "2560x1080_60.00" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync | |
| sudo xrandr --addmode HDMI-1 "2560x1080_60.00" |
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
| FROM mhart/alpine-node:8.9 | |
| # Dependencies | |
| RUN apk --no-cache add --virtual builds-deps build-base python vim | |
| # Specify pgweb version | |
| ENV PGWEB_VERSION=0.9.12 \ | |
| PGWEB_USER=pgweb \ | |
| PGWEB_DIR=/app/pgweb |