There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
- Tag markup (which cannot resolve to text) is surrounded by
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}
$(function(){ // on dom ready | |
var cy = cytoscape({ | |
container: document.getElementById('cy'), | |
layout: { | |
name: 'cose', | |
padding: 10, | |
randomize: true | |
}, |
import re | |
from hashlib import md5 | |
from markdown import markdown | |
def gfm(value): | |
# Extract pre blocks. | |
extractions = {} | |
def pre_extraction_callback(matchobj): | |
digest = md5(matchobj.group(0).encode('utf-8')).hexdigest() | |
extractions[digest] = matchobj.group(0) |
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<title>crispr scanner, made by Liang Cai</title> | |
<style type="text/css" media="screen"><!-- | |
body{margin:25px;padding:0;font-family:Arial,Helvetica,sans-serif;font-size:100%;line-height:1.5} | |
article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block} | |
h1,h2,h3,h4{margin:1em 0 .5em;line-height:1.25;font-weight:700} | |
h1{font-size:2em} |
Multi Link Example for http://www.robschmuecker.com/d3-js-drag-and-drop-zoomable-tree/#comment-6190
Added an additional link between nodes at the bottom of the dndTree.js file.
This example pulls together various examples of work with trees in D3.js.
The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.
One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.
#!/usr/bin/env bash | |
# names of latest versions of each package | |
export VERSION_PCRE=pcre-8.38 | |
export VERSION_OPENSSL=openssl-1.0.2d | |
export VERSION_NGINX=nginx-1.9.7 | |
# URLs to the source directories | |
export SOURCE_OPENSSL=https://www.openssl.org/source/ | |
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ |
server { | |
listen 80 default_server; | |
listen [::]:80 ipv6only=on default_server; | |
server_name splunk.net blog.splunk.net www.splunk.net .taddevries.com; | |
access_log /var/log/nginx/blog.access_log main; | |
error_log /var/log/nginx/blog.error_log info; | |
return 301 https://blog.splunk.net; | |
} | |
server { |
#!/bin/sh | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
################################################################################# | |
# start and stop the vpn from the command line from now on with these two commands | |
# or rename the aliases as you see fit. | |
################################################################################# | |
alias startvpn="sudo launchctl load -w /Library/LaunchDaemons/net.juniper.AccessService.plist; open -a '/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'" | |
alias quitvpn="osascript -e 'tell application \"PulseTray.app\" to quit';sudo launchctl unload -w /Library/LaunchDaemons/net.juniper.AccessService.plist" |