- Loi n°55-385 from 1955
- Wikipedia / Etat d'urgence en France (general structure)
| #!/usr/bin/env python3 | |
| import requests | |
| from flask import * | |
| import random | |
| from apscheduler.schedulers.background import BackgroundScheduler | |
| app = Flask(__name__) | |
| scheduler = BackgroundScheduler() | |
| url = "https://reddit.com/r/gonewild/comments.json?limit=200" |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
My notes for Dokku on Digital Ocean.
These may be a bit outdated: Since I originally wrote them, I've reinstalled on a newer Dokku and may not have updated every section below.
Install dokku-cli (gem install dokku-cli) for a more Heroku-like CLI experience (dokku config:set FOO=bar).
# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
| # curl not smart enough for ipv6, so force ipv4 | |
| # on my mac I started to get localhost connect failure | |
| # | |
| # curl: (7) Failed to connect to localhost port 9031: Connection refused | |
| echo '--ipv4' >> ~/.curlrc |
| http://google.com | |
| //google.com | |
| \\google.com | |
| \/google.com | |
| \/\/google.com | |
| /\google.com | |
| /\/\google.com | |
| |/google.com | |
| /%09/google.com | |
| /google.com |
| * |
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| pip install networkx distance pattern | |
| In Flipboard's article[1], they kindly divulge their interpretation | |
| of the summarization technique called LexRank[2]. |