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
<button id="quotes">New Quote</button> | |
<div id ="title"></div> | |
<p id ="content"></p> | |
<!-- JS file is inserted using Codepen --> |
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
for (var i = 0; i < 11; i++) { | |
start(i); | |
} | |
function start(i) { | |
setTimeout(function(){ | |
console.log("i:" + i); | |
}, 1000); | |
} |
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
#include <cs50.h> | |
#include <string.h> | |
#include "helpers.h" | |
#include <stdio.h> | |
/** | |
* Returns true if value is in array of n values, else false. | |
*/ | |
bool search(int value, int values[], int n) | |
{ |
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
const channels = "ESL_SC2, OgamingSC2, cretetion, freecodecamp, storbeck, habathcx, RobotCaleb, noobs2ninjas"; | |
const end = `https://api.twitch.tv/kraken/streams/channel=${channels}`; | |
const streams = []; | |
const myHeaders = new Headers(); | |
myHeaders.append("Client-Id", "lfy14565wb4omezslcd2a3unt3zcv9"); | |
const init = { | |
method: 'GET', | |
Headers: myHeaders |
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
[ | |
{ | |
"keyword": "factorial", | |
"syntax": "\\frac{numerator}{denominator}" | |
}, | |
{ | |
"keyword": "binomial", | |
"syntax": "\\binom{n}{k}" | |
}, | |
{ |
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
[ | |
{ | |
"key": "", | |
"desc": " \\\\* terminates a line, but disallows a pagebreak.\n" | |
}, | |
{ | |
"key": "", | |
"desc": "\n" | |
}, | |
{ |
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
[ | |
{ | |
"key": " ", | |
"desc": " \n" | |
}, | |
{ | |
"key": "\\* ", | |
"desc": "erminates a line, but disallows a pagebreak.\n" | |
}, | |
{ |
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
[ | |
{ | |
"key": "\\frac{num}{den}", | |
"description": "Create a fraction. The num stands for numerator and den for denominator" | |
}, | |
{ | |
"key": "\\dfrac{num}{den}", | |
"description": "Fraction in display mode" | |
}, | |
{ |
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
{ | |
"name": "tests", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "mocha **/*.test.js", | |
"test-watch": "nodemon --exec \"npm test\"" | |
}, | |
"author": "", |
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
import React from 'react'; | |
export default class Action extends React.Component { | |
constructor(props) { | |
super(props); | |
this.handleAction = this.handleAction.bind(this); | |
} | |
handleAction (e) { |
OlderNewer