Git is awesome, but a lot of the time, I just need a quick reference for which commands to use in which situations. Here Goes!
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 this file to deploy an app to the staging server on nodejitsu. | |
*/ | |
var fs = require('fs'); | |
var package = ''; | |
var bash = require('child_process'); | |
var jitsu; |
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 this to do a blue-green (zero downtime) deployment on Bluemix for Node.js apps. | |
*/ | |
var bash = require('child_process'); | |
var util = require('util'); | |
var routesBash; | |
var events = require('events'); | |
var emitter = new events.EventEmitter(); |
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
filetype plugin indent on | |
" Setting up vim plug | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'MarcWeber/vim-addon-mw-utils' | |
Plug 'tomtom/tlib_vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'garbas/vim-snipmate' | |
Plug 'tpope/vim-surround' |
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
var style = { | |
base: { | |
fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif', | |
fontSize: '16px', | |
lineHeight: '24px' | |
} | |
} | |
var card = elements.create('card', {style: style}) |
This file has been truncated, but you can view the full file.
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 lang="en"> | |
<head> | |
</a> | |
<meta charset="utf-8"> | |
<title>World Map</title> | |
<meta name="viewport" content="width=device-width"> | |
<style id="style_css_sheet" type="text/css"> | |
/* | |
* Below are Cascading Style Sheet (CSS) definitions in use in this file, |
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
// on hashchange | |
window.addEventListener('hashchange', function (event) { | |
// grab the hash | |
var hash = location.hash.split('#')[1] | |
// grab the links with selectable class | |
var links = document.querySelectorAll('a.selectable') | |
// loop through the links | |
for (var i = 0; i < links.length; i++) { | |
// if the hash matches the href of the link | |
var href = links[i].href.split('#')[1] |
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
Verifying my Blockstack ID is secured with the address 1Lg9oxTJ9C3hFwSv26gKQ75ED3vzW6PcQu https://explorer.blockstack.org/address/1Lg9oxTJ9C3hFwSv26gKQ75ED3vzW6PcQu |
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
$ sudo apt install neovim | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Suggested packages: | |
ctags vim-scripts | |
The following NEW packages will be installed: | |
neovim | |
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded. | |
Need to get 1,056 kB of archives. |
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
[user] | |
email = | |
name = | |
[core] | |
editor = nvim | |
[merge] | |
tool = vimdiff | |
[color] | |
ui = auto | |
[alias] |
OlderNewer