it is used to embed gist to an asynchronously-loaded web pages.
<iframe
width="100%"
height="350"
src="data:text/html;charset=utf-8,
<!doctype html> | |
<title>Hello</title> | |
<p>The following search field depends on Javascript, so let's render it with Javascript: | |
<template data-autorender="true"> | |
<form> | |
<input type="search"> | |
</form> | |
</template> |
import { Observable } from 'rxjs/Observable'; | |
// then patch import only needed operators: | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/observable/from'; | |
const foo = Observable.from([1, 2, 3]); | |
foo.map(x => x * 2).subscribe(n => console.log(n)); |
<?php | |
$api_key = "YOUR_API_KEY"; | |
$list_id = "YOUR_LIST_ID"; | |
require('Mailchimp.php'); | |
$Mailchimp = new Mailchimp( $api_key ); | |
$Mailchimp_Lists = new Mailchimp_Lists( $Mailchimp ); | |
$subscriber = $Mailchimp_Lists->subscribe( $list_id, array( 'email' => htmlentities($_POST['email']) ) ); | |
if ( ! empty( $subscriber['leid'] ) ) { |
This document will briefly review a few of the more common ways of using stylus plugins for those who are not familiar. Throughout these examples, we will be using a non-existant stylus plugin called example
. Please change example
out for whatever plugin you are actually trying to use!
First example is for if you are building your own stylus pipeline in node. This is a pretty standard way to do things.
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" |