[](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])
# Remove the line below if you want to inherit .editorconfig settings from higher directories | |
root = true | |
# C# files | |
[*.cs] | |
#### Core EditorConfig Options #### | |
# Indentation and spacing | |
indent_size = 4 |
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.
[ | |
{ | |
"name":"ABAP", | |
"type":"programming", | |
"extensions":[ | |
".abap" | |
] | |
}, | |
{ | |
"name":"AGS Script", |
<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> |
using Sitecore.Caching; | |
using Sitecore.Caching.Generics; | |
using Sitecore.Configuration; | |
using Sitecore.Diagnostics; | |
using Sitecore.Sites; | |
using System; | |
using System.Collections; | |
namespace MyApp.Publishing | |
{ |
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 & |
- 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
// ES7, async/await | |
function sleep(ms = 0) { | |
return new Promise(r => setTimeout(r, ms)); | |
} | |
(async () => { | |
console.log('a'); | |
await sleep(1000); | |
console.log('b'); | |
})() |
(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; |