Character Class | Description |
---|---|
[:alnum:] |
The alphanumeric characters. In ASCII, equivalent to: [A-Za-z0-9] . |
[:word:] |
The same as [:alnum:] , with the addition of the underscore (_ ) character. |
[:blank:] |
The space and tab characters. |
[:digit:] |
The numerals 0 through 9. |
function delay(callback, ms) { | |
var timer = 0; | |
return function() { | |
clearTimeout(timer); | |
timer = setTimeout(callback, ms); | |
}; | |
}; | |
document.getElementById('input').addEventListener(delay(function (event) { |
{ | |
"name": "Requirements Example", | |
"models": [ | |
{ | |
"name": "ModelName", | |
"generator": "random(vertex_coverage(100))", | |
"startElementId": "v0", | |
"vertices": [ | |
{ | |
"id": "v0", |
Social media meta tags are <meta>
tags in the <head>
of your web page that control how URLs
are displayed when shared on social media.
If you are using webpack
you can use the meta
option from the HtmlWebpackPlugin
to add the
social meta meta tags to your web page:
// webpack.config.js
You can use Travis CI to deploy your Ember app to GitHub Pages after a successful build.
Using TravisCI over ember-cli-github-pages
has the advantage of automatically deploying the app for every change pushed to the master
branch.
For a minimal configuration, update your .travis.yml
file:
URL Parameters (Query Parameters) are a set o key value pars attached to the end of a url. They are used to send small amounts of data from page to page, or from client to server via a URL.
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. Created by John Gruber in 2004, Markdown is now one of the world’s most popular markup languages.
# This is an tag
With the help of ShowdownJs and HighlightJs you can build an Markdown component with syntax highlighting.
ShowdownJs is an easy to use Markdown to HTML converter, it can be used in both client side (browser) or server side (with nodejs).
HighlightJs is an JavaScript library for syntax highlighting on the web. It supports 189 languages and 94 styles.