git clone [email protected]: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
# Had to show a friend how Euc algorithm for GCD works real quick | |
def euc(m, n): | |
r = m % n | |
if (r != 0): | |
euc(n, r) | |
else: | |
return n | |
/* | |
Background color: #222233 | |
Foreground color: #D1D1D1 | |
Links color: #64BEFA | |
Base font size: 24px | |
Line height: 1.5em | |
Line width: 36em | |
Monospace font: Menlo, Monospace, Consolas | |
Body/header font: BlinkMacSystemFont (Won't work outside of OS X) | |
Base CSS: Newsprint |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace epsilon_greedy | |
{ | |
class Program |
var StarsFrame = React.createClass({ | |
render: function() { | |
let stars = []; | |
for (let i = 0; i < this.props.numberOfStars; i++) { | |
stars.push( | |
<span key={i} className="glyphicon glyphicon-star"></span> | |
); | |
} | |
// Subtracts the number of days to a Date and returns it | |
Date.prototype.subtractDays = function(days) { | |
var dat = new Date(this.valueOf()); | |
dat.setDate(dat.getDate() - days); | |
return dat; | |
} |
import mongoose, { Schema } from 'mongoose'; | |
const StepSchema = new mongoose.Schema({ | |
name: { type: String, required: true }, | |
description: String, | |
position: { type: Number, required: true }, | |
date_added: { type: Date, default: Date.now }, | |
date_modified: { type: Date, default: Date.now }, | |
templates: [{ type: Schema.Types.ObjectId, ref: 'Template' }], | |
active: { type: Boolean, default: true }, |
@import url('https://fonts.googleapis.com/css?family=Roboto'); | |
@font-face { | |
font-family: 'Roboto'; | |
src: url("https://fonts.googleapis.com/css?family=Roboto:300"); | |
} | |
@font-face { | |
font-family: 'Source Sans Pro Semibold'; | |
src: url("chrome-extension://dgmanlpmmkibanfdgjocnabmcaclkmod/fonts/SourceSansPro-Semibold.ttf"); |
git clone [email protected]: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
:term "C:\Program Files\Git\bin\bash.exe" |
{ | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", |