- 3 keys:
0x33 - Ctrl key:
0x11 - Windows key:
0x5B - Left arrow key:
0x25 - Right arrow key:
0x27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "items": [ | |
| { | |
| "actor": { | |
| "objectType": "", | |
| "id": "" | |
| }, | |
| "verb": "", | |
| "object": { | |
| "id": "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.ComponentModel; | |
| using System.Runtime.CompilerServices; | |
| namespace Acme | |
| { | |
| public abstract class BindableBase : INotifyPropertyChanged | |
| { | |
| public event PropertyChangedEventHandler PropertyChanged; | |
| protected virtual void SetProperty<T>(ref T property, T value, [CallerMemberName] string propertyName = null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Html exposing (..) | |
| import Html.App as App | |
| import Html.Attributes as Attr exposing (..) | |
| import Html.Events as Event exposing (..) | |
| main = App.beginnerProgram | |
| { model = model | |
| , view = view | |
| , update = update | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const waterfall = (array = []) => { | |
| const iterate = index => (...args) => { | |
| const fn = array[index] | |
| const next = iterate(index + 1) | |
| return fn ? | |
| Promise.resolve(fn(...args, next)) : | |
| Promise.resolve(...args) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // import diff from 'diffhtml' | |
| class HelloWorld extends HTMLElement { | |
| constructor() { | |
| super() | |
| this.name = 'world' | |
| this.render = this.render.bind(this) | |
| this.onInput = this.onInput.bind(this) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, h } from 'preact' | |
| import Router from 'preact-router' | |
| import Nav from './components/nav.jsx' | |
| const asyncComponent = getComponent => class extends Component { | |
| componentWillMount() { | |
| if (!this.state.component) { | |
| getComponent() | |
| .then(module => module.default) | |
| .then(this.linkState('component')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { Component, h, render } = preact | |
| const createStore = (reducer, initialState) => { | |
| let listeners = [] | |
| let currentState = initialState | |
| const getState = () => currentState | |
| const subscribe = listener => { | |
| listeners.push(listener) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Document": { | |
| "prefix": "!", | |
| "body": [ | |
| "<!DOCTYPE html>", | |
| "<meta charset=\"utf-8\">", | |
| "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">", | |
| "", | |
| "<title>${1:Document}</title>", | |
| "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const MONTHS = [ | |
| 'Jan', | |
| 'Feb', | |
| 'Mar', | |
| 'Apr', | |
| 'May', | |
| 'Jun', | |
| 'Jul', | |
| 'Aug', | |
| 'Sep', |
OlderNewer