Update the system packages to the latest versions:
Spread vs JSON.parse speed when calling simple function
const N = 100000;
function test(obj) {
var result = obj.a + obj.b;
return result;
}
function test2(obj) {
var result = obj.a + obj.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
name: mydrupalprojectwithcompass | |
recipe: drupal7 | |
config: | |
webroot: docroot | |
php: '5.6' | |
database: mysql:5.7 | |
xdebug: true | |
events: | |
post-db-import: | |
- appserver: cd $LANDO_WEBROOT/sites/default && drush rr |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
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
{% spaceless %} | |
{% if integer > 1 %} | |
{{ plural }} | |
{% else %} | |
{{ singular }} | |
{% endif %} | |
{% endspaceless %} |
I use PostgreSQL via the psql client. If you use a different client (eg. pgAdmin, etc.), I don't know how much will translate over.
One nice difference between psql and mysql (cli) is that if you press CTRL+C, it won't exit the client.
psql -U postgres
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
#!/usr/local/bin/php | |
<?php | |
if (php_sapi_name() !== 'cli') { | |
return; | |
} | |
date_default_timezone_set('Europe/Paris'); | |
require_once 'vendor/autoload.php'; | |
use Symfony\Component\Yaml\Yaml; | |
try { |
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
--- ----------------- ---- | |
Map Quick Explanation Link | |
--- ----------------- ---- | |
< <F1> Causes Netrw to issue help | |
<cr> Netrw will enter the directory or read the file |netrw-cr| | |
<del> Netrw will attempt to remove the file/directory |netrw-del| | |
<c-h> Edit file hiding list |netrw-ctrl-h| | |
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| | |
<c-r> Browse using a gvim server |netrw-ctrl-r| | |
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab| |
A zoomable candlestick chart.
Copyright © 2017-20, Sandhya Pillai - MIT License
NewerOlder