background preloader

Programming Langs

Facebook Twitter

C#

C. ES6. Home - Haxe - The Cross-platform Toolkit. Language Design Docs. The Julia Language. How to understand abc (the basics) « abc notation blog. [the second in a series of articles on using and understanding abc] OK.

How to understand abc (the basics) « abc notation blog

So let’s suppose you’ve just come across abc and you want to know a little more about how it works before delving deeper. Or maybe you’ve already started using abcs you’ve found on websites and now you want to understand them, perhaps to try modifying them slightly. In this short article we’re going to look at the basics of the notation itself. The structure of an abc tune Typically a tune consists of two parts – the header, containing background information, and the notes, containing … the notes. In this first example, the header is the first 5 lines – each line containing a different type of information – and the notes are contained in the last 3 lines.

X:1 T:Paddy O'Rafferty C:Trad. We will now look at all the elements of this tune in more detail. The header Each tune can contain a lot of background information so there are fields to cover almost every eventuality. Finally the X: field just contains a reference number. Subscribe to Visual Studio Team Services events from another service. Using the Subscriptions REST APIs, you can programmatically create a subscription that performs an action on an external (consumer) service when a specific event occurs in a team project.

Subscribe to Visual Studio Team Services events from another service

For example, you can create a subscription to notify your service when a build fails. Supported events: build completedcode pushed (for Git team projects)pull request create or updated (for Git team projects)code checked in (TFVC team projects)work item created, updated, deleted, restored or commented onmessage posted to a team room You can configure filters on your subscriptions to control which events trigger an action. For example, you can filter the build completed event based on the build status.

For a complete set of supported consumer services and actions, see the consumer reference. Create a subscription for a team project To create a subscription for an event, choose which consumer to use and the action you want to take. Before you begin Create the request What happens when the event occurs? Meta programming. Starting with ECMAScript 2015, JavaScript gains support for the Proxy and Reflect objects allowing you to intercept and define custom behavior for fundamental language operations (e.g. property lookup, assignment, enumeration, function invocation, etc).

Meta programming

With the help of these two objects you are able to program at the meta level of JavaScript. Proxies Introduced in ECMAScript 6, Proxy objects allow you to intercept certain operations and to implement custom behaviors. For example getting a property on an object: The Proxy object defines a target (an empty object here) and a handler object in which a get trap is implemented. Additional examples are available on the Proxy reference page.

Terminology The following terms are used when talking about the functionality of proxies. handler Placeholder object which contains traps. traps The methods that provide property access. Target Object which the proxy virtualizes.

Kotlin

Functional Langs. Lua. Ruby. Python. Rdio's Alex Gaynor at Heroku's Waza 2013: Why Python, Ruby and Java... Interpreted Languages: JavaScript, PHP, Python, Ruby (Sheet One) - Hyperpolyglot. A side-by-side reference sheet sheet one: version | grammar and execution | variables and expressions | arithmetic and logic | strings | regexes | dates and time | arrays | dictionaries | functions | execution control | exceptions | threads sheet two: streams | asynchronous events | files | file formats | directories | processes and environment | option parsing | libraries and namespaces | objects | inheritance and polymorphism | reflection | net and web | gui | databases | unit tests | logging | debugging sheet two: streams | asynchronous events | files | directories | processes and environment | option parsing | libraries and namespaces | objects | inheritance and polymorphism | reflection | net and web | gui | databases | unit tests | logging | debugging version used The versions used for testing code in the reference sheet. show version How to get the version. php: The function phpversion() will return the version number as a string. python: import platform platform.python_version() ruby: <?

Interpreted Languages: JavaScript, PHP, Python, Ruby (Sheet One) - Hyperpolyglot

Pad.

Go