jq is useful to slice, filter, map and transform structured json data.
brew install jq
<template> | |
<div> | |
<label>{{ label }}</label> | |
<input v-bind:value="value" v-on:input="$emit('input', $event.target.value)" /> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: ['label', 'value'], |
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
ABNC - Academia Brasileira de Neurocirurgia | |
AGU - Advocacia-Geral da União | |
ANAC - Agência Nacional de Aviação Civil | |
CAER - Clube de Aeronáutica | |
CAU - Conselho de Arquitetura e Urbanismo | |
CBM - Corpo de Bombeiro Militar | |
CFA - Conselho Federal Administração | |
CFB - Conselho Federal de Biblioteconomia | |
CFBIO - Conselho Federal de Biologia | |
CFBM - Conselho Federal de Biomedicina |
<?php | |
require_once dirname(__FILE__) . '/../lib/simpletest/autorun.php'; | |
function retry($f, $delay = 10, $retries = 3) | |
{ | |
try { | |
return $f(); | |
} catch (Exception $e) { | |
if ($retries > 0) { | |
sleep($delay); |
<?php | |
namespace App\Actions; | |
class ActionService | |
{ | |
protected array $defaultOptions = []; | |
/** | |
* @return array |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
define ROOT "/var/www/meusite/public/" | |
define SITE "meusite.com.br" | |
<VirtualHost *:80> | |
DocumentRoot "${ROOT}" | |
ServerName ${SITE} | |
ServerAlias *.${SITE} | |
<Directory "${ROOT}"> | |
AllowOverride All | |
Require all granted |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |