- Scheme - The scheme name consists of a sequence of characters beginning with a letter and followed by any combination of letters, digits,
+
,.
, or-
. Although schemes are case-insensitive, the canonical form is lowercase and documents that specify schemes must do so with lowercase letters. The scheme name is followed by a colon:
. - Host Name - Hostname labels may contain only the ASCII letters
a
throughz
(in a case-insensitive manner), the digits0
through9
, and the-
. While a hostname may not contain other characters, such as the underscore character_
, other DNS names may contain the underscore. - Port Number - A port number is a 16-bit unsigned integer, thus ranging from
0
to65535
. - Path - If present, may optionally begin with a single forward slash
/
. It may not begin with two slash characters//
. The path is a sequence of segments (conceptually similar to directories, though not necessarily representing them) separated by a forward s
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
# Was asked how I keep my zshrc config sync'd between my computers with Dropbox | |
# Add a new directory in your Dropbox (or use an existing one) | |
mkdir -p ~/Dropbox/ohmyzsh | |
# move existing file to Dropbox | |
mv ~/.zshrc ~/Dropbox/ohmyzsh/zshrc | |
# symlink file back to your local directory | |
ln -s ~/Dropbox/ohmyzsh/zshrc ~/.zshrc |
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
/** | |
* Get a random floating point number between `min` and `max`. | |
* | |
* @param {number} min - min number | |
* @param {number} max - max number | |
* @return {number} a random floating point number | |
*/ | |
function getRandomFloat(min, max) { | |
return Math.random() * (max - min) + min; | |
} |
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, { Component } from 'react'; | |
export default class ReactApp extends Component { | |
constructor(props) { | |
super(props); | |
const placeholder = { | |
try: 'removing some whitespace', | |
or: 'add valid JSON', | |
then: ['then', 'click', 'format'], |
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
// ==UserScript== | |
// @name Direct Download From fmovies | |
// @namespace http://maxyspark.com/ | |
// @version 0.1 | |
// @description Direct Download From fmovies | |
// @author MaxySpark | |
// @match http://fmovies.to/* | |
// @match https://fmovies.to/* | |
// @match http://9anime.to/* | |
// @grant none |
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
// base64.decode(base64.encode('💩')); | |
// Browsers | |
const base64 = { | |
encode: str => btoa(unescape(encodeURIComponent(str))), | |
decode: str => decodeURIComponent(escape(atob(str))) | |
}; | |
/* ES3 compat version | |
var base64 = { |