Skip to content

Instantly share code, notes, and snippets.

View DaveHudson's full-sized avatar

Dave Hudson DaveHudson

View GitHub Profile
import { Machine, assign } from 'xstate';
import firebase from './firebase';
const chart = {
id: 'auth',
context: {
auth: null,
error: null,
loggedoutTime: null
},
@lbrenman
lbrenman / README.md
Last active June 3, 2016 17:11
Appcelerator Arrow - Encrypt Data in Transit

Arrow Encryption for Data in Transit

Appcelerator mobile applications use Secure Sockets Layer (SSL) for encrypting and decrypting all data transmitted and received by the device. However, for certain applications, one may want to add another layer of encryption for added security. This post describes how to programmatically add additional encryption for data in transit between an Appcelerator application and an ArrowDB as illustrated below.

Background

The basic idea is to add a pre block to your Arrow model for decrypting data on a POST or PUT from the client app. This will decrypt data sent by the client app. Also, add a post block for encrypting data being sent to the client app on a GET.

@christopherperry
christopherperry / adb+
Created July 30, 2012 16:12
A bash script that let's you issue adb commands to multiple devices at once
#!/bin/bash
# Script adb+
# Usage
# You can run any command adb provides on all your currently connected devices
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
#
# Examples
# ./adb+ version
# ./adb+ install apidemo.apk
# ./adb+ uninstall com.example.android.apis