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?)
function SaferHTML(templateData) { | |
var s = templateData[0]; | |
for (var i = 1; i < arguments.length; i++) { | |
var arg = String(arguments[i]); | |
// Escape special characters in the substitution. | |
s += arg.replace(/&/g, "&") | |
.replace(/</g, "<") | |
.replace(/>/g, ">"); |
var newUrl = "http://localhost:1111/?", | |
objKeys = []; | |
objKeys = Object.keys(obj); | |
for (var u = 0; u < objKeys.length; u++) { | |
var key = objKeys[u]; | |
newUrl += key + "=" + escape(obj[key]) + "&"; | |
} |
var url = "", | |
obj = {}; | |
url = window.location.href.split('?')[1].split('&'); | |
for (var u = 0; u < url.length; u++) { | |
var items = url[u].split('=') | |
obj[items[0]] = unescape(items[1]); | |
}; |
// Coffee | |
class Animal | |
this.species; | |
class Human extends Animal | |
this.species = "mammal"; | |
this.sex; | |
class Woman extends Human | |
this.sex = "female"; |
class Settings | |
constructor: -> | |
@localStorage = window.localStorage | |
if @localStorage? | |
@localStorage = | |
repo_name: false, | |
desktop_notifications: true, | |
oauth_token: '' |
// This gist will keep your image or video's aspect ratio at 16:9 and horizontally centered | |
// [support](//caniuse.com/#feat=viewport-units): IE9+, Firefox 21+, Chrome 27+, Safari 6+, Android 4.4+, BlackBerry 10+ | |
// [credit](//stackoverflow.com/a/20593342) | |
.video | |
position: relative | |
max-height: 100vh | |
max-width: 177.78vh | |
width: 100vw | |
height: 56.25vw | |
background-color: black |
component.json
NOTE: Whatever you use as the name in this will be same name you use in step 3/public/js/main.js
as your scriptlayout.jade
remove the require.js
script and add:
script(src="js/build.js")
script.
require('name-from-component.js')
### Keybase proof | |
I hereby claim: | |
* I am hhsnopek on github. | |
* I am hhsnopek (https://keybase.io/hhsnopek) on keybase. | |
* I have a public key whose fingerprint is DBC8 8FD3 DD50 AA75 FF1F F349 63D1 7861 D3ED 8EA1 | |
To claim this, I am signing this object: |