Skip to content

Instantly share code, notes, and snippets.

View tgmarinho's full-sized avatar
💻
read my blog: tgmarinhopro.com

Thiago Marinho tgmarinho

💻
read my blog: tgmarinhopro.com
View GitHub Profile
@tgmarinho
tgmarinho / import.sh
Last active June 15, 2018 14:46
import_mongo
mongoimport -h localhost:3001 -d meteor -c tasks  --file taks.json
mongoimport -h localhost:3001 -d meteor -c tasks  --file taks.json
mongoexport -h localhost:3001 -d meteor -c tasks -o output.json
#remote
#JSON
##Import collection
mongoimport -h database.mlab.com:34212 -d heroku_xxxxxxxx -c <collection> -u <user> -p <password> --file <input file>
##Export collection
mongoexport -h database.mlab.com:34212 -d heroku_xxxxxxxx -c <collection> -u <user> -p <password> -o <output file>
Estou contratando 2 freelancers com proposito long-term. Pagamento em dólar, valor da hora USD $35.
*Como vai funcionar?*
Vou te passar um projeto, vc vai orçar a quantidade de horas necessárias e seu pagamento será essa quantidade vezes $35 (pra cada projeto, é claro).
*Quas as vantagens?*
- Você pode focar em programar, enquanto que eu gerencio os clientes e te passo projetos
- Você vai ser incentivado a dar seu melhor constantemente, sou extremamente rígido com qualidade de código (apesar da rigidez, estou sempre aberto a ouvir, e se seus argumentos forem bons, não tenho problemas em aceitá-los)
{
"name": "Thiago Marinho",
"type": "test",
"verify": "http://awendland.github.io/angular-json-tree/",
"structure": [
{
"id": 1,
"label": "A",
"child": [
{
name type verify structure.0.id structure.0.label structure.0.child.0.id structure.0.child.0.label structure.0.child.1.id structure.0.child.1.label structure.0.child.2.id structure.0.child.2.label structure.1.id structure.1.label structure.1.child.0.id structure.1.child.0.label structure.1.child.1.id structure.1.child.1.label structure.1.child.2.id structure.1.child.2.label structure.2.id structure.2.label structure.2.child structure.3.id structure.3.label structure.3.child.0.id structure.3.child.0.label structure.3.child.1.id structure.3.child.1.label structure.4.id structure.4.label structure.4.child structure.5.id structure.5.label structure.5.child structure.6.id structure.6.label structure.6.child structure.7.id structure.7.label structure.7.child structure.8.id structure.8.label structure.8.child
Thiago Marinho test http://awendland.github.io/angular-json-tree/ 1 A 2 B 3 C 4 D 2 B 5 E 6 F 7 G 3 C 4 D 8 H 9 I 5 E 6 F 7 G 8 H 9 I
"{\n \"name\": \"Thiago Marinho\",\n \"goal\": \"job\",\n \"verify\": \"http://awendland.github.io/angular-json-tree/\",\n \"structure\": [\n {\n \"id\": 1,\n \"label\": \"A\",\n \"child\": [\n {\n \"id\": 2,\n \"label\": \"B\"\n },\n {\n \"id\": 3,\n \"label\": \"C\"\n },\n {\n \"id\": 4,\n \"label\": \"D\"\n }\n ]\n },\n {\n \"id\": 2,\n \"label\": \"B\",\n \"child\": [\n {\n \"id\": 5,\n \"label\": \"E\"\n },\n {\n \"id\": 6,\n \"label\": \"F\"\n },\n {\n \"id\": 7,\n \"label\": \"G\"\n }\n ]\n },\n {\n \"id\": 3,\n \"label\": \"C\",\n \"child\": []\n },\n {\n \"id\": 4,\n \"label\": \"D\",\n \"child\": [\n {\n \"id\": 8,\n \"label\": \"H\"\n },\n {\n \"id\": 9,\n \"la
{
"name": "Thiago Marinho",
"type": "test",
"verify": "http://awendland.github.io/angular-json-tree/",
"structure": {
"id": 1,
"label": "A",
"child": [
{
"id": 2,
@tgmarinho
tgmarinho / recursion.js
Created July 6, 2018 04:20
exercitando recursão
const name = "thiago marinho"
const findLetterInName = (name = 'João', letter = 'j') => {
const [head, ...tail] = name.toLowerCase().trim().split('');
return (head === letter.toLowerCase())
? 'gotcha: ' + head
: tail.length > 0