Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kibagateaux on github.
  • I am kibagateaux (https://keybase.io/kibagateaux) on keybase.
  • I have a public key ASD-eTcRhXocBPvPxxhdBKMINAfwYjcbllqPoCHmdtkoXQo

To claim this, I am signing this object:

@kibagateaux
kibagateaux / dynamo-db.js
Created October 10, 2017 14:44
Accessing Dynamo DB with React Native AWS Javascript SDK
import AWS from 'aws-sdk';
import {AWS_ACCESS_KEY, AWS_SECRET_KEY} from 'react-native-dotenv';
import {COGNITO_USER} from '@constants/asyncStorage';
import {AsyncStorage} from 'react-native';
import {Auth} from '@lib/Auth';
const creds = () => AsyncStorage.getItem(COGNITO_USER)
.then((data) => JSON.parse(data))
.then((data) => data);
@kibagateaux
kibagateaux / embark-log.txt
Created September 16, 2018 13:40
Logs from running fresh project on Status' Embark framework
[info]: ========================
[info]: Welcome to Embark 3.1.10
[info]: ========================
[info]: loaded plugins: embark-status
[trace]: add check: embarkVersion
[trace]: startMonitor
[trace]: add check: Ethereum
[trace]: add check: Whisper
[info]: pid 44077 listening on /Users/kiba/code/BG_test/.embark/embark.ipc
@kibagateaux
kibagateaux / Decision.cto
Created May 2, 2018 20:38
Accord Voting Standard
namespace org.accord_voting.decision
asset Decision identified by identifier {
// what is a decision's job, function, place in the system, how will it be used?
o String identifier
o String decisionValue // what the actual decsion is. maybe bytes or raw data instead?
o String election // explicitly define where the decision came from
o Boolean isVoid optional
o Boolean isPrivate optional
}

Definitions: Granularity| How fine the measurements can get. From keyboard tap to is the app open? Depth| How much data can we get from each event? Data Mobility| How easy is it to move data from that service/platform? Implementation| What do we have to deal with? Integrstions| What other services are available using this method?

Segment.io

@kibagateaux
kibagateaux / README.md
Created September 1, 2017 08:55
React Native Analytics Analysis

||_____||_____| |Metric|Google Analytics|Firebase|Segment.io| |Overview|Bridge to native so you get additional metadata from device not available from app. Comes with built in Google Analytics events for users, sessions, and hits (visited pages/screens). Can customize for event fires, timing, exceptions, and purchases. Uses Google Analytics so syncs with web app. Uses react-native-google-analytics-bridge package|A better version of classic Google Analytics, they are both present as they are implemented in different ways. https://medium.com/exploring-android/exploring-firebase-on-android-ios-analytics-8484b61a21ba|AnalyticsAnalyticsAnalyticsAnalytics API with widespread support although still building out react-native. Accessed through analytics-react-native package. Great libraries, community and tools available. Can also send the messages to our own server in options object https://www.npmjs.com/package/analytics-react-native |

|Granularity| Manually build events for each page so we can get as m