Use setPopupContent()
to update a popup periodically.
This file contains 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
#!/bin/sh | |
# update | |
sudo apt-get update | |
# curl | |
sudo apt-get install -y curl | |
# openssh | |
sudo apt-get install -y openssh-server |
This file contains 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
Show hidden characters
{ | |
"theme": "Autumn.sublime-theme", | |
"drag_text": false, | |
"folder_exclude_patterns": [ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules" | |
], |
This file contains 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
{ | |
// "auto_complete_cycle": true, | |
"caret_extra_bottom": 1, | |
"caret_extra_top": 2, | |
"caret_extra_width": 1, | |
"caret_style": "blink", | |
"drag_text": false, | |
"draw_white_space": "none", | |
// "ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": |
This file contains 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
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/ |
This file contains 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
server { | |
listen 80; | |
server_name react.dev; | |
root /app/react-demo; | |
location / { | |
include /etc/nginx/mime.types; | |
try_files $uri $uri/ /index.html; | |
} | |
} |
This file contains 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 json | |
from collections import Iterable | |
from bson import ObjectId | |
from datetime import datetime | |
class MongoengineEncoder(json.JSONEncoder): | |
""" | |
The default JSON encoder that ships with Mongoengine (the to_json method | |
exposed on Document instances) makes some odd choices. Datetime objects | |
are nested on a $date property, ObjectIds are nested on an $oid property, |
http://codepen.io/anon/pen/VvzZWr - CSS only hover transition
http://codepen.io/anon/pen/WQOVbE - React hover transition
http://codepen.io/anon/pen/jbLPBo - React button toggle
http://codepen.io/anon/pen/dYzYyj - React creating boxes
http://codepen.io/anon/pen/gaxaxY - VanillaJS creating boxes
This file contains 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
// ES7, async/await | |
function sleep(ms = 0) { | |
return new Promise(r => setTimeout(r, ms)); | |
} | |
(async () => { | |
console.log('a'); | |
await sleep(1000); | |
console.log('b'); | |
})() |
This file contains 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
//lsauer.com 2012 | |
//description: comprehensive list of MIME types / subtypes as a tab-separated flatfile | |
//source: W3C | |
extension mime | |
.3dm x-world/x-3dmf | |
.3dmf x-world/x-3dmf | |
.a application/octet-stream | |
.aab application/x-authorware-bin | |
.aam application/x-authorware-map |
OlderNewer