To create an anchor to a heading in github flavored markdown.
Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading)
so your link should look like so:
[create an anchor](#anchors-in-markdown)
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
var application_root = __dirname, | |
express = require("express"), | |
path = require("path"), | |
mongoose = require('mongoose'); | |
var app = express.createServer(); | |
// database | |
mongoose.connect('mongodb://localhost/ecomm_database'); |
#Introduction
Developing Chrome Extensions is REALLY fun if you are a Front End engineer. If you, however, struggle with visualizing the architecture of an application, then developing a Chrome Extension is going to bite your butt multiple times due the amount of excessive components the extension works with. Here are some pointers in how to start, what problems I encounter and how to avoid them.
Note: I'm not covering chrome package apps, which although similar, work in a different way. I also won't cover the page options api neither the new brand event pages. What I explain covers most basic chrome applications and should be enough to get you started.
/** | |
* This code contains an implementation of HTML5 outlining algorithm, as described by WHATWG at [1] | |
* | |
* The copyright notice at [2] says: | |
* (c) Copyright 2004-2009 Apple Computer, Inc., Mozilla Foundation, and Opera Software ASA. | |
* You are granted a license to use, reproduce and create derivative works of this document. | |
* | |
* [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/sections.html#outlines | |
* [2] http://www.whatwg.org/specs/web-apps/current-work/multipage/index.html | |
*/ |
#!/usr/bin/python | |
import csv, sys, os | |
import numpy as np | |
# Get the top X non-fork projects for the GHTorrent dump (without using SQL) | |
# The dumps should be available at http://ghtorrent.org/downloads.html | |
if len(sys.argv) < 5: | |
print "Usage <dir> <language> <topX> <outcsv>" | |
sys.exit(-1) |
#!/bin/bash | |
# generate file containing all URIs to execute to retrieve data from hacker news firebase API | |
# api docs: https://github.com/HackerNews/API | |
echo generating file hn-uri.txt | |
URICOUNT=10000000 | |
echo file will contain $URICOUNT lines |
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.