JSON-Schema-faker demo
Run the following:
npm install
node run.js
to execute the demo.
node_modules |
const API_URL = 'http://localhost:3011/' | |
const OfficeModel = { | |
getCollection(){ | |
return fetch(`${API_URL}offices`) | |
.then(res => res.json()) | |
}, | |
async __extendOfficeWithEmployees(office){ | |
const employees = await EmployeeModel.getCollection(office.city) | |
return { ...office, employees } |
#!/usr/bin/python | |
import sys, dbus | |
knotify = dbus.SessionBus().get_object("org.kde.knotify", "/Notify") | |
try: title, text = sys.argv[1:3] | |
except: print 'Usage: knotify.py title text'; sys.exit(1) | |
knotify.event("warning", "kde", [], title, text, [], [], 0, 0, dbus_interface="org.kde.KNotify") |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sinon.js fakeServer demo</title> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/sinon.js/1.7.3/sinon-min.js"></script> | |
<script src="sinon-fake-server.js"></script> | |
</head> | |
<body> |
Run the following:
npm install
node run.js
to execute the demo.
#!/bin/bash | |
if [ "$1" != "" ]; then | |
case $1 in | |
-o | --open ) echo "$USER opening sshfs connection" | |
open your connection here | |
;; | |
-c | --close ) echo "$USER closing sshfs connection" | |
close your connection here | |
;; |
resolveSame
- new promise aggregate
theValue
(function webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(); | |
else if(typeof define === 'function' && define.amd) | |
define("csp", [], factory); | |
else if(typeof exports === 'object') | |
exports["csp"] = factory(); | |
else | |
root["csp"] = factory(); | |
})(this, function() { |
node_modules |
Reveal.configure({ | |
keyboard: { | |
40: 'next', | |
38: 'prev' | |
} | |
}); |