Demo of multipart form/file uploading with hapi.js
.
npm install
npm run setup
npm run server
Then ...
I combined Mike Bostock's Zoomable Sunburst and Sunburst Partition examples, so that I could have both zooming and updating the underlying data (between count and size, in this case). A simple combination of the examples does not work; you have to edit the arcTween function used for updating the data, so that when it redraws the partition layout, it takes account of the current zoom level by adjusting the domain of the x scale.
Click on any arc to zoom in, and click on the center circle to zoom out. Use the Size/Count radio buttons to update the data.
var Stream = require('stream'); | |
var Util = require('util'); | |
/* | |
To Use: | |
var rot13 = new ROT13Stream(); | |
streamOne.pipe(rot13).pipe(process.stdout); // takes readstream streamOne, modifies with rot13, pipes into stdout | |
*/ |
package bm | |
import ( | |
"testing" | |
) | |
var mb = map[string]bool{ | |
"alpha": true, | |
"beta": true, | |
"gamma": true, |
#picaxe 08m2 | |
' Odkaz https://gist.github.com/synaptiko/10754510 | |
' Tabulka názvů proměnných, které lze v 08M2 použít: | |
' b0:b1 b2:b3 b4:b5 b6:b7 b8:b9 b10:b11 b12:b13 b14:b15 b16:b17 b18:b19 b20:b21 b22:b23 b24:b25 b26:b27 | |
' w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 | |
' b* = 1 byte, tj. 256 různých hodnot | |
' w* = 2 byty, tj. 65 536 různých hodnot | |
' Kromě těchto dvou jde použít i bit* pro nastavení pouze 2 hodnot (true/false) | |
' Pozor bit0-bit7 se překrývá s b1. Stejně tak b1 a b2 se překrývá s w1. Analogicky je to i pro ostatní proměnné. |
public with sharing class AsyncReportController { | |
public List<SelectOption> availableReports { get; set; } | |
public Id reportId { get; set; } | |
public Id instanceId { get; set; } | |
public Boolean reportIsRunning { get; set; } | |
private transient Reports.ReportResults reportResults; | |
public AsyncReportController() { | |
availableReports = retrieveAvailableReports(); |
var Hapi = require('hapi'); | |
var stream = require('stream'); | |
// Create a server | |
var server = Hapi.createServer('localhost', 8000); | |
// Add a route | |
server.route({ | |
method: 'GET', | |
path: '/hello', |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
license: apache-2.0 |