Configured for a Mac-like experience
Apple Magic Keyboard 2: Model A1644 (same as MLA22LL/A ?)
Mapping for Linux Mint 18 Cinnamon 64-bit
#!/bin/sh | |
mv www/index.php index.php.saved | |
rm -rf www/* | |
# update project/ to your directory name | |
cp -a project/public/* www | |
cp project/public/.* www | |
rm -rf www/index.php | |
mv index.php.saved www/index.php |
<?php | |
// Test cards | |
$cards = array( | |
'378282246310005', // American Express | |
'371449635398431', // American Express | |
'5078601870000127985', // Aura | |
'5078601800003247449', // Aura | |
'30569309025904', // Diners Club | |
'38520000023237', // Diners Club |
<?php | |
// Get Base URI | |
$baseUri = str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname($_SERVER['SCRIPT_FILENAME'])); | |
$http = str_replace(array('/', '\\'), '/', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . $baseUri . '/'); | |
$catalog = explode('/', $http); | |
array_pop($catalog); | |
array_pop($catalog); | |
$catalog = implode('/', $catalog) . '/'; |
<snippet> | |
<content><![CDATA[ | |
public function ${1:relationship}() | |
{ | |
return \$this->belongsToMany(${1/^(.+)$/(?1\u$1:)/g}::class, {$2:table}); | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>belt</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
// Delete all except multiple | |
git branch | grep -v "master\|dev" | xargs git branch -D | |
// Delete all except 1 | |
git branch | grep -v "master" | xargs git branch -D |
// Exemplo de requisição GET | |
var ajax = new XMLHttpRequest(); | |
// Seta tipo de requisição e URL com os parâmetros | |
ajax.open("GET", "minha-url-api.com/?name=Henry&lastname=Ford", true); | |
// Envia a requisição | |
ajax.send(); | |
// Cria um evento para receber o retorno. |
Configured for a Mac-like experience
Apple Magic Keyboard 2: Model A1644 (same as MLA22LL/A ?)
Mapping for Linux Mint 18 Cinnamon 64-bit
details summary { | |
cursor: pointer; | |
outline: none !important; | |
display: inline-block; | |
padding: 8px 12px; | |
padding-top: 10px; | |
border-radius: 4px; | |
overflow: hidden; | |
background: #F09825; | |
color: white; |