Support the native in-app-purchasing API's in Titanium.
var IAP = require('ti.iap');
var PRODUCT_IDENTIFIER = 'YOUR_PRODUCT_IDENTIFIER';| """ | |
| For work you need: copy as cUrl (bash) any of `GET` http-requests in Network tab (Chrome Dev-Tools): | |
| - https://www.linkedin.com/voyager/api/relationships/dash/connections?decorationId=com.linkedin.voyager.dash.deco.web.mynetwork.ConnectionListWithProfile-15&count=40&q=search&sortType=RECENTLY_ADDED&start=40 | |
| After paste press Enter twice :) | |
| """ | |
| import logging | |
| import time | |
| import requests | |
| logging.basicConfig(level=logging.DEBUG) |
| dmtoolkit.magejosh.repl.co | |
| seo-plugin.orrenprunckun.com | |
| talkfpl.beegreeeen.workers.dev | |
| videohighlight.com | |
| aiplugin-experiences.owlting.com | |
| www.nani.ooo | |
| jetbook.click | |
| imageeditor.dev | |
| api.speedybrand.io | |
| c-resume.copilot.us |
| #!/usr/bin/bash | |
| # | |
| # Description: Zip the current Titanium project on macOS | |
| # File: backup.sh | |
| # Author: Jose Cerrejon (ulysess_at_gmail.com) | |
| # Help: Copy in the root of your Titanium project and Add to package.json the script: "backup": "sh backup.sh", | |
| # | |
| clear | |
| stop_liveview() { |
| import { createSign, randomBytes } from 'crypto' | |
| import axios from 'axios' | |
| import { resolve } from 'url' | |
| const PK_HEADER = '\n-----BEGIN PRIVATE KEY-----\n' | |
| const PK_FOOTER = '\n-----END PRIVATE KEY-----\n' | |
| const BASE_URL = 'https://marketplace.walmartapis.com/' | |
| const WALMART_CONSUMER = "b68d2a72...."; |
| function doClick(e) { | |
| alert($.label.text); | |
| } | |
| $.index.open(); | |
| var alertFields = { | |
| title: 'Notification', //Android Only | |
| body : 'Just another notification', | |
| badge: 1, |
| //"THE BEER-WARE LICENSE": As long as you retain this notice you can do whatever you want with this stuff. | |
| //If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Jamie Buckley | |
| var win = Ti.UI.createWindow({ | |
| backgroundColor: 'black', | |
| fullscreen: true, | |
| width: Ti.Platform.displayCaps.platformWidth, | |
| height: Ti.Platform.displayCaps.platformHeight | |
| }); |
| const asyncExec = require('util').promisify(require('child_process').exec); | |
| /** | |
| * Execute command line in a child process | |
| * @param {...String} args Commands | |
| * @return {String} | |
| */ | |
| async function exec (...args) { | |
| const { stdout, stderr } = await asyncExec(...args); |
| module.exports = { | |
| data: [ | |
| {"Name":"Demivee","Type":"Prospect","Phone":"1-(818)173-8443"}, | |
| {"Name":"Shufflester","Type":"Prospect","Phone":"93-(232)869-5557"}, | |
| {"Name":"Voonte","Type":"Customer","Phone":"62-(269)473-1186"}, | |
| {"Name":"Thoughtsphere","Type":"Prospect","Phone":"86-(902)994-3017"}, | |
| {"Name":"Zoonder","Type":"Customer","Phone":"1-(202)358-2758"}, | |
| {"Name":"Flashspan","Type":"Customer","Phone":"57-(126)114-4912"}, | |
| {"Name":"Yoveo","Type":"Customer","Phone":"593-(320)380-5127"}, |
| /* | |
| * function to check for all location services outcomes | |
| */ | |
| function requestLocationPermissions(authorizationType, callback) { | |
| // FIXME: Always returns false on Android 6 | |
| // https://jira.appcelerator.org/browse/TIMOB-23135 | |
| if (OS_IOS && !Ti.Geolocation.locationServicesEnabled) { | |
| return callback({ | |
| success : false, |