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 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"); |
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 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 }, |
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
// 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; | |
} |
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
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> | |
); | |
} | |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace epsilon_greedy | |
{ | |
class Program |
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
/* | |
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 |
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
# 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 | |
NewerOlder