This file contains hidden or 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
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
This file contains hidden or 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
## Configuration file for a typical Tor user | |
## Last updated 16 July 2009 for Tor 0.2.2.1-alpha. | |
## (May or may not work for much older or much newer versions of Tor.) | |
## | |
## Lines that begin with "## " try to explain what's going on. Lines | |
## that begin with just "#" are disabled commands: you can enable them | |
## by removing the "#" symbol. | |
## | |
## See 'man tor', or https://www.torproject.org/tor-manual.html, | |
## for more options you can use in this file. |
This file contains hidden or 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
// emscripten uses le32-unknown-nacl triple but rustc doesn't know it now. | |
// So just use similar target instead. | |
// `rustc hello.rs --target=i686-unknown-linux --emit-llvm -S --cfg libc` | |
// `emcc hello.ll -o hello.js` | |
// no `extern mod`. | |
#[no_std]; | |
#[feature(macro_rules)]; | |
use core::container::Container; |
This file contains hidden or 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
#container{ | |
border: 1px solid green; | |
height: 300px; | |
overflow: auto; | |
padding: 20px; | |
} | |
.block{ | |
background-color: green; | |
height: 50px; |
This file contains hidden or 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
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE QuasiQuotes #-} | |
module Add where | |
import Foundation | |
import Yesod | |
getAddR :: Int -> Int -> Handler TypedContent | |
getAddR x y = selectRep $ do | |
provideRep $ defaultLayout $ do |
This file contains hidden or 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
var beaconCatcherAddress = "https://rum.revampix.com/beacon/catcher.php" | |
addEventListener('fetch', event => { | |
event.respondWith(handle(event, event.request)) | |
}) | |
async function asyncFetch(request) { | |
let response = fetch(request) | |
.then( | |
function() {}, |