To run:
- Clone this gist
bower install- Serve index.html
- Open developer tools inspector
- First `` element has 4 widget instances attached; second had 3, etc.
| { | |
| "always_show_minimap_viewport": true, | |
| "color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme", | |
| "draw_minimap_border": true, | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_face": "SourceCodePro-light", | |
| "font_size": 15, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "ignored_packages": [ |
| export PS1='[\[\033[0;95m\]\#\[\033[0m\]][\[\033[0;35m\]\!\[\033[0m\]] \[\033[0;36m\]\u\[\033[0m\]:\[\033[0;32m\]\W\[\033[0m\]\[\033[0;33m\]$(declare -F __git_ps1 &>/dev/null && __git_ps1 ":%s")\[\033[0m\]\[\033[0;31m\]$\[\033[0m\] ' |
| module.exports = { | |
| key1: 'foo', | |
| key2: { | |
| subkey1: 'foo', | |
| subkey2: { | |
| subsubkey1: 'foo', | |
| // ... | |
| } | |
| } | |
| } |
| #!/usr/bin/env bash | |
| #https://gist.github.com/EyalAr/4bc6524c3c9ae6af33a9 | |
| SOURCE_HOST=127.0.0.1 | |
| SOURCE_DB=dev | |
| TARGET_HOST=127.0.0.1 | |
| TARGET_DB=stage |
| // This is a demonstration for a ROUTER socket which is used concurrently | |
| // by two different threads. One to receive messages and one to send. | |
| // Running this program will cause a panic because ZeroMQ sockets are not | |
| // threads-safe. | |
| package main | |
| import ( | |
| "fmt" | |
| zmq "github.com/pebbe/zmq4" |
To run:
bower installMDN recommends NOT to use labels in Javascript, and instead use exceptions or functions. But turns out labels are the fastest, closely followed by named functions.
Test case: Run two nested loops. The inner loop needs to continue the
outer loop upon some condition.
Tests: