Tested under webpack-dev-server 1.7.0.
- Clone this gist
npm installnpm start- Visit http://localhost:8080 (or http://192.168.x.x:8080) on multiple devices
- Edit entry.js and hit save
| ;;; packages.el --- Language Server Protocol functions File for Spacemacs | |
| ;; | |
| ;; Copyright (c) 2012-2018 Sylvain Benner & Contributors | |
| ;; | |
| ;; Author: Fangrui Song <i@maskray.me> | |
| ;; URL: https://github.com/syl20bnr/spacemacs | |
| ;; | |
| ;; This file is not part of GNU Emacs. | |
| ;; | |
| ;;; License: GPLv3 |
| import { h, Component } from 'preact'; | |
| /** Creates a new store, which is a tiny evented state container. | |
| * @example | |
| * let store = createStore(); | |
| * store.subscribe( state => console.log(state) ); | |
| * store.setState({ a: 'b' }); // logs { a: 'b' } | |
| * store.setState({ c: 'd' }); // logs { c: 'd' } | |
| */ |
| import java.io.IOException; | |
| import javax.websocket.OnClose; | |
| import javax.websocket.OnError; | |
| import javax.websocket.OnMessage; | |
| import javax.websocket.OnOpen; | |
| import javax.websocket.Session; | |
| import javax.websocket.server.ServerEndpoint; | |
| import org.slf4j.Logger; |
Tested under webpack-dev-server 1.7.0.
npm installnpm start| <cfscript> | |
| // I am the name of the JavaScript method to invoke with the response data. | |
| param name="url.callback" type="string"; | |
| // I am here to simulate HTTP latency (and to make the demo more interesting). | |
| sleep( 1000 ); | |
| data = [ | |
| { |
| var Artist = Backbone.Model.extend(); | |
| var Artists = Backbone.Collection.extend({ | |
| model : Artist, | |
| url : "http://api.discogs.com/database/search?type=artist", | |
| sync : function(method, collection, options) { | |
| // By setting the dataType to "jsonp", jQuery creates a function | |
| // and adds it as a callback parameter to the request, e.g.: | |
| // [url]&callback=jQuery19104472605645155031_1373700330157&q=bananarama | |
| // If you want another name for the callback, also specify the |
| (defun clocktable-by-tag/shift-cell (n) | |
| (let ((str "")) | |
| (dotimes (i n) | |
| (setq str (concat str "| "))) | |
| str)) | |
| (defun clocktable-by-tag/insert-tag (params) | |
| (let ((tag (plist-get params :tags))) | |
| (insert "|--\n") | |
| (insert (format "| %s | *Tag time* |\n" tag)) |
| #!/usr/bin/ruby | |
| # An example of BluePages / IBM Intranet Password authentication using Ruby. | |
| # Uses the gem ruby-ldap, a Ruby wrapper for OpenLDAP. Works with Ruby 2.0. | |
| # | |
| # To get this code to work, you must | |
| # | |
| # 1. gem install ruby-ldap | |
| # 2. add | |
| # |
Comments? sacha@sachachua.com
| <html> | |
| <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
| <head> | |
| <title>D3.js Dashboard Introduction</title> | |
| <script src="http://d3js.org/d3.v2.js"></script> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> | |
| <script> | |
| function getMaxObjectValue(this_array, element) { |