Skip to content

Instantly share code, notes, and snippets.

services:
php:
build:
context: ./api
target: api_platform_php
<<: *api-cache-from
image: ${PHP_IMAGE:-quay.io/api-platform/php}
healthcheck:
interval: 10s
timeout: 3s
<?php
require('/etc/phpmyadmin/config.secret.inc.php');
/* Ensure we got the environment */
$vars = array(
'PMA_ARBITRARY',
'PMA_HOST',
'PMA_HOSTS',
'PMA_VERBOSE',
javascript:(function(){let cardId = location.href.match(/c\/([^/]+)/)[1];let url = `https://trello.com/1/cards/${cardId}/actions?filter=updateCard:desc`;fetch(url).then(data => data.json()).then(body => document.querySelector('textarea.comment-box-input').textContent = body[0].data.old.desc);})();
function f() {
let i = null;
for (i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 0);
console.log(i);
}
}
f();
@kraynel
kraynel / CODE_PUSH_PROCESS.md
Last active July 7, 2017 10:30
How to install codepush on your RN project?

1. Install code-push cli

npm install -g code-push-cli

2. Login into code-push

Login into Github with developers.bam@gmail.com, or open a new Chrome session. In your terminal:

code-push register