Create a new local git repository in current directory
git init
Check out (and switch to) remote branch
git checkout <remote branch name>
Update current branch
| <head> | |
| <!-- Your head content --> | |
| <link rel="stylesheet" href=style.css"> | |
| <!--[if lt IE 9]> <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> <![endif]--> | |
| </head> |
| #!/bin/bash | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
| echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
| sudo apt-get update | |
| sudo apt-get install -y git-core subversion curl mongodb-org |
| var flattenObject = function(ob) { | |
| var toReturn = {}; | |
| for (var i in ob) { | |
| if (!ob.hasOwnProperty(i)) { continue; } | |
| if ((typeof ob[i]) === 'object') { | |
| var flatObject = flattenObject(ob[i]); | |
| for (var x in flatObject) { | |
| if (!flatObject.hasOwnProperty(x)) { continue; } |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "bento/ubuntu-14.04" | |
| config.vm.provision :shell, :path => "provision.sh", privileged: false | |
| config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
| end |
Create a new local git repository in current directory
git init
Check out (and switch to) remote branch
git checkout <remote branch name>
Update current branch
| // Angular 1.x | |
| <tr ng-repeat="friend in friends"> | |
| <td>{friend.name}</td> | |
| </tr> | |
| // React/JSX | |
| {this.props.friends.map(function(friend) { | |
| return ( | |
| <tr key={friend.guid}> | |
| <td> {friend.name} </td> |
| module.exports = { | |
| env: { | |
| commonjs: true, | |
| es6: true, | |
| node: true | |
| }, | |
| extends: "airbnb-base", | |
| globals: { | |
| Atomics: "readonly", | |
| SharedArrayBuffer: "readonly" |
| import React from "react"; | |
| import styled from "styled-components"; | |
| const NavBar = styled.div` | |
| background-color: cornflowerblue; | |
| padding: 1rem; | |
| `; | |
| const FlyoutMenu = styled.div` | |
| background-color: limegreen; |
| find /usr/share/nano/ -iname "*.nanorc" -exec echo include {} \; >> ~/.nanorc |
| "use strict"; | |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', | |
| // default font size in pixels for all tabs |