Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# First of all, install the jq lib
# Path to the user's .zshrc file
ZSHRC="$HOME/.zshrc"
# Check if jq is installed, install if it's not
if ! command -v jq &> /dev/null; then
echo "jq is not installed. Installing jq..."
# Install jq based on the OS
{
"contrato": {
"id_projeto": 316,
"codigo_integracao": "12",
"pep": "sample string 3",
"id_tipocontrato": 4,
"id_tipovenda": 5,
"valor_contrato": 6.0,
"data_contrato": "2020-05-13T14:12:52.4541575-03:00",
"valor_venda": 8.0,
{
"Queue": {
"GetProduct": {
"host": "http:product-service",
"path": "products",
"method": "GET",
"backout": "products-backout"
}
}
}

Runtime Errors

Module AppRegistry is not a registered callable module

  • Solution:
cd android
sudo ./gradlew clean
react-native run-android
from flask import Flask, request, jsonify
from nameko.standalone.rpc import ClusterRpcProxy
CONFIG = {'AMQP_URI': "amqp://guest:guest@localhost:5672"}
app = Flask(__name__)
@app.route('/playlists', methods=['GET'])
def playlists():
"""
import os
import json
import sys
from urllib import quote
from nameko.rpc import rpc, RpcProxy
import requests
openweather_base_url = 'http://api.openweathermap.org/data/2.5/weather'
spotify_base_url = 'https://api.spotify.com/v1/'
{ "id":"13037" ,"versao":"1" ,"titulo":"SENAC Not�?­cias - Mar�?§o-Abril 1991" ,"texto":"Vers�?£o integral das mat�?©rias veiculadas no SENAC Not�?­cias de mar�?§o e abril de 1991 que abordam os seguintes assuntos: 1�?º Semin�?¡rio de tend�?ªncias ver�?£o; in�?­cio das aulas no SENAC CEATEL; atividades em comemora�?§�?£o ao Dia Internacional da Mulher; curso experimental de diagrama�?§�?£o eletr�?´nica emPageMaker; III Bolsa Panamericana de Turismo; palestra sobre sa�?ºde e seguran�?§a do trabalho; doa�?§�?£o pr�?©dio ao SENAC em Piracicaba; Curso de Confec�?§�?£o de Bijuterias; obras do SENAC S�?£o Jos�?© dos Campos e do Grande Hotel Campos do Jord�?£o; semin�?¡rio \"Defesa do Consumidor �?�? Quem assume a responsabilidade da empresa?\", Programa de Forma�?§�?£o B�?¡sica de Gerenciamento por Idades; palestra sobre educa�?§�?£o ambiental; Comercial de divulga�?§�?£o do Grande Hotel S�?£o Pedro." ,"data":"04/1991" ,"tipoConteudo":"DETALHE DE AUDIOVISUAL"
## Introduction
The main goal related with this exercise is fix the GIT usage with good practices.
## Requeriments
- Docker
- GIT
## Exercise
@alvaropaco
alvaropaco / GIT-EX1.md
Created September 19, 2018 18:48
Exercicio de fixação GIT

Introduction

The main goal related with this exercise is fix the GIT usage with good practices.

Requeriments

  • React Native knowledge
  • GIT

Exercise

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",