Skip to content

Instantly share code, notes, and snippets.

@mayroncachina
mayroncachina / terminar-windows-settings.json
Last active December 30, 2020 00:47
Terminal Windows Settings
// This file was initially generated by Windows Terminal 1.4.3243.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@mayroncachina
mayroncachina / gist:b49a96c61ab7b340a72fefc1e19b8d1c
Created August 27, 2016 19:31
imagens para Phonegap Build
<icon src="res/icon/ios/Icon.png" />
<icon gap:platform="android" gap:qualifier="ldpi" src="res/icon/android/icon-36-ldpi.png" />
<icon gap:platform="android" gap:qualifier="mdpi" src="res/icon/android/icon-48-mdpi.png" />
<icon gap:platform="android" gap:qualifier="hdpi" src="res/icon/android/icon-72-hdpi.png" />
<icon gap:platform="android" gap:qualifier="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
<gap:splash src="res/splash.png" />
<gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="res/screen/android/screen-ldpi-portrait.png" />
<ion-view view-title="Mensagens" ng-controller="Messages">
<ion-nav-bar class="bar-royal" ng-controller="Back">
<ion-nav-buttons side="left">
<button class="button back-button buttons button-clear header-item" ng-click="myGoBack()">
<i class="ion-chevron-left"></i> Voltar
</button>
</ion-nav-buttons>
</ion-nav-bar>
<ion-content class="messages-chat" class="has-header">
#config.xml
<gap:plugin name="com.pushwoosh.plugins.pushwoosh" version="3.4.2" />
#js
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
@mayroncachina
mayroncachina / gist:7cd64450238708b4536a
Created August 29, 2015 21:23
Phonegap save picture on library
navigator.camera.getPicture(onSuccess, onFail,
{ quality: 25,
destinationType : Camera.DestinationType.FILE_URI,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : true,
encodingType: Camera.EncodingType.JPEG,
//popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: true
});
SELECT
usuarios.id,
usuarios.nome,
usuarios.email,
usuarios.nascimento,
GROUP_CONCAT(telefones.numero SEPARATOR ', ') AS telefones,
usuarios.cep,
usuarios.estado,
usuarios.cidade,
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript">
document.addEventListener("deviceready", init, false);
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript">
document.addEventListener("deviceready", init, false);
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript">
document.addEventListener("deviceready", init, false);
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript">
document.addEventListener("deviceready", init, false);