- end-of-stream - specify a callback to be called when a stream ends (which is surpsingly hard to get right)
- duplexify - compose a Duplex stream from a Readable and a Writable stream
- pump - pipe streams together and close all of them if one of them closes
- pumpify - combine an array of streams into a single duplex stream using pump and duplexify
- through2 - tools for making Transform streams
- from2 - tools for making Readable streams
| http { | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m; | |
| proxy_temp_path /var/tmp; | |
| include mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; | |
| keepalive_timeout 65; | |
| gzip on; | |
| gzip_comp_level 6; | 
| input { | |
| tcp { | |
| type => "syslog" | |
| host => "127.0.0.1" | |
| port => 3514 | |
| } | |
| tcp { | |
| type => "eventlog" | |
| host => "10.1.1.2" | |
| port => 3515 | 
| (function() { | |
| "use strict"; | |
| var Chart = this.Chart; | |
| var helpers = Chart.helpers; | |
| Chart.SeriesScale = Chart.Scale.extend({ | |
| calculateXLabelRotation : function() { | |
| this.xLabelWidth = 0; | |
| this.xScalePaddingRight = this.padding; | 
| // ES7, async/await | |
| function sleep(ms = 0) { | |
| return new Promise(r => setTimeout(r, ms)); | |
| } | |
| (async () => { | |
| console.log('a'); | |
| await sleep(1000); | |
| console.log('b'); | |
| })() | 
| sudo: false | |
| env: | |
| global: | |
| - MONGODB_VERSION=2.6.10 | |
| install: | |
| - wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-$MONGODB_VERSION.tgz | |
| - tar xfz mongodb-linux-x86_64-$MONGODB_VERSION.tgz | |
| - export PATH=`pwd`/mongodb-linux-x86_64-$MONGODB_VERSION/bin:$PATH | |
| - mkdir -p data/db | |
| - mongod --dbpath=data/db & | 
| using Sitecore.Caching; | |
| using Sitecore.Caching.Generics; | |
| using Sitecore.Configuration; | |
| using Sitecore.Diagnostics; | |
| using Sitecore.Sites; | |
| using System; | |
| using System.Collections; | |
| namespace MyApp.Publishing | |
| { | 
| <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
| <sitecore> | |
| <events> | |
| <event name="publish:end:remote"> | |
| <handler type="MyApp.Publishing.APICaller, MyApp.Publishing" method="CallAPIMethod" /> | |
| </event> | |
| </events> | |
| </sitecore> | |
| </configuration> | 
| [ | |
| { | |
| "name":"ABAP", | |
| "type":"programming", | |
| "extensions":[ | |
| ".abap" | |
| ] | |
| }, | |
| { | |
| "name":"AGS Script", | 
Roslyn provides a rich set of APIs for analyzing C# and Visual Basic source code, but constructing a context in which
to perform analysis can be challenging. For simple tasks, creating a Compilation populated with SyntaxTrees,
MetadataReferences and a handful of options may suffice. However, if there are multiple projects involved in the
analysis, it is more complicated because multiple Compilations need to be created with references between them.
To simplify the construction process. Roslyn provides the Workspace API, which can be used to model solutions,
projects and documents. The Workspace API performs all of the heavy lifting needed to parse SyntaxTrees from source
code, load MetadataReferences, and construct Compilations and add references between them.