Skip to content

Instantly share code, notes, and snippets.

View jhowbhz's full-sized avatar
🦾
Um programador apaixonado pelo que faz

Jhon jhowbhz

🦾
Um programador apaixonado pelo que faz
View GitHub Profile
@jhowbhz
jhowbhz / emul.bat
Created January 31, 2019 13:13
Open AVD image ANDROID_STUDIO .BAT
@ CD %userprofile%\AppData\Local\Android\Sdk\emulator
@ ECHO SUAS "AVDS" CRIADAS NO ANDROID_STUDIO
@ ECHO -----------------------------
@ emulator -list-avds
@ ECHO -----------------------------
@ ECHO Por favor, digite o nome da sua imagem antes de continuar...
@ SET /p iso=NOME AVD --^>
@ emulator -avd %iso%
@jhowbhz
jhowbhz / connect_ssh.txt
Created November 5, 2018 04:08
connect ssh heroku
heroku run bash -app=XXXXX
Step 1 — Installing the Dependencies
sudo apt update
sudo apt install ca-certificates curl openssh-server postfix
Step 2 — Installing GitLab
cd /tmp
curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
sudo bash /tmp/script.deb.sh
@jhowbhz
jhowbhz / ajax.js
Created October 18, 2018 17:26
example_sintaxe
app.request.get('http://www.whileushop.com/lama/json.php',function (data) {
console.log(data);
});
@jhowbhz
jhowbhz / exemplo_db_mysqli.php
Last active October 4, 2018 20:40
exemplo de insert mysqli
<?php
// CONECTE-SE AO DB
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// RECEBA O POST
$campo_1 = $_POST['campo1'];
@jhowbhz
jhowbhz / datatable.js
Created October 4, 2018 19:48
Datatable JS
$(function () {
$('#teste').DataTable({
processing: true,
serverSide: false,
"columnDefs": [
{"targets": 3, "render": function (data, type, row) {
var botao = "<div class='btn-group dropup'>\
@jhowbhz
jhowbhz / datatable.html
Created October 4, 2018 19:47
DataTable Teste
<table id="teste" class="display" width="100%">
<thead>
<tr>
<th>CAMPO 1</th>
<th>CAMPO 2</th>
<th>CAMPO 3</th>
<th>CAMPO 4</th>
</tr>
</thead>
<tfoot>
@jhowbhz
jhowbhz / assinar_APK.txt
Created September 6, 2018 15:29
assinar_APK
cd C:\Users\Jonathan\cotacaobeta
cordova build --release android
cd c:\Program Files\Java\jdk1.8.0_171\bin
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore "c:\certificados\keys\cotacao_agn.keystone" "C:\Users\Jonathan\cotacaobeta\platforms\android\build\outputs\apk\release\android-release-unsigned.apk" "agn_cotacao"
cd c:\certificados\zipalign\
@jhowbhz
jhowbhz / datatables.js
Created July 23, 2018 14:03
DataTables JS
$(function () {
$('#tbl_veiculos').DataTable({
processing: true,
serverSide: true,
ajax: '/api/XXXXXX/XXXXXX-json',
columns:[
{data :'XXXXXX', name:'XXXXXX'},
],
"columnDefs": [
@jhowbhz
jhowbhz / helper_ide_laravel.php
Created July 7, 2018 02:00
Como adicionar helps ide no laravel
/*
Install repository GIT
composer require barryvdh/laravel-ide-helper
Inserir no array de provides
local: Config\app.php
Inserir
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,