Skip to content

Instantly share code, notes, and snippets.

View DouglasHennrich's full-sized avatar

Douglas Hennrich DouglasHennrich

  • Brazil - RS - Estância Velha
View GitHub Profile
This file has been truncated, but you can view the full file.
❯ appc run -p ios -T dist-appstore -O ./dist --pp-uuid "e0f788b0-b321-475e-b859-b97b0a9f828c" --distribution-name "Edufy Sistemas Ltda ME (5L5TMLD7C5)" -l debug
Appcelerator Command-Line Interface, version 8.0.0
Copyright (c) 2014-2020, Appcelerator, Inc. All Rights Reserved.
2020-04-14T14:40:57.609Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/douglashennrich/.appcelerator/install/8.0.0/package/appc.js
2020-04-14T14:40:57.743Z | DEBUG | [PLUGIN-LOAD] 127ms /Users/douglashennrich/.appcelerator/install/8.0.0/package/node_modules/appc-cli-titanium/appc.js
2020-04-14T14:40:57.743Z | DEBUG | run plugin: /Users/douglashennrich/.appcelerator/install/8.0.0/package/node_modules/appc-cli-titanium
2020-04-14T14:40:57.899Z | DEBUG | Titanium Downloads Last Checked: 1586868013641
2020-04-14T14:40:58.920Z | DEBUG | active sdk info { sdkPath:
'/Users/douglashennrich/Library/Application Support/Titanium',
@DouglasHennrich
DouglasHennrich / resetsims.js
Last active October 22, 2019 19:54 — forked from cb1kenobi/resetsims.js
Resets all iOS, watchOS, and tvOS simulators
'use strict';
const execSync = require('child_process').execSync;
const json = JSON.parse(execSync('xcrun simctl list --json'));
for (const runtime of Object.keys(json.devices)) {
for (const device of json.devices[runtime]) {
console.log(`Removing ${device.name} (${device.udid})`);
execSync(`xcrun simctl delete ${device.udid}`);
}
//
// MapViewController.swift
// Fleeter
//
// Created by Guilherme Leite Colares on 25/06/19.
// Copyright © 2019 Fleeter. All rights reserved.
//
import UIKit
import SideMenu
@DouglasHennrich
DouglasHennrich / socketio.js
Last active May 10, 2022 00:52
socket.io.1.4.5.js
(function (f) {
if (typeof exports === 'object' && typeof module !== 'undefined') {
module.exports = f();
} else if (typeof define === 'function' && define.amd) {
define([], f);
} else {
var g;
if (typeof window !== 'undefined') {
g = window;
} else if (typeof global !== 'undefined') {
@DouglasHennrich
DouglasHennrich / mongo.sh
Last active February 1, 2018 13:34
CityHall Schema.js
{
"_id": ObjectId("5a73112180820986b109e6b8"),
"departments": [
{
"drivers": [
{
"loc": {
"coordinates": [
-12.45,
45.67
  • First you need to remove the current version of appc-cli alloy.

~/.appcelerator/install/For CLI Version/package/node_modules/

delete the folder alloy

  • Go back to package folder and edit package.json file

change the alloy version from ~1.8.0 to 1.9.0

@DouglasHennrich
DouglasHennrich / README.md
Created April 12, 2016 17:33 — forked from falkolab/README.md
How to use latest Alloy with appc CLI

If you want to use latest alloy with appc CLI command:

  1. Update Alloy: [sudo] npm install -g alloy

  2. Create file in your project <project root>/plugins/global.alloy/1.0/hooks/global_alloy_hook.js with content:

exports.init = function (logger, config, cli, appc) {
	delete process.env.ALLOY_PATH;
};
/**
* Ti.TouchID
*
* Summary: Support native Touch ID with Hyperloop in Titanium Mobile.
* Author: Hans Knoechel | Appcelerator, Inc
* Date: 03/22/2016
* Version: 0.1.0
* Example
*
* var touchID = require("ti.touchid");
<?
session_start();
include '../config/conecta.php';
$titulo = $_POST['titulo'];
$descricao = $_POST['descricao'];
$cidade = $_POST['cidade'];
$nome_empresa = $_SESSION["nome"];
$id_empresa = $_SESSION["id"];
function atualizarFunc(event){
// Codigo para reiniciar toda a table aqui
// Use o hide para "terminar" o pull to refresh
requisicaoXHR({
refresh: event
});
}
function carregarMais(event){
requisicaoXHR({