Skip to content

Instantly share code, notes, and snippets.

Sam Dozor samdozor

Block or report user

Report or block samdozor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@samdozor
samdozor / selfconfigexample.js
Created Jul 2, 2019
Self Configuration Example
View selfconfigexample.js
import mParticle from '@mparticle/web-sdk';
import mParticleConfig from './mpconfig.prod.json';
import gaKit from '@mparticle/web-google-analytics-kit'
gaKit.register(mParticleConfig);
// this is required to instruct the SDK that the configuration
// does not need to be refreshed by the SDK on init.
mParticleConfig.requestConfig = false;
@samdozor
samdozor / github_issues_to_csv.py
Created Mar 16, 2017 — forked from patrickfuller/github_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
View github_issues_to_csv.py
"""
Exports issues from a list of repositories to individual csv files.
Uses basic authentication (Github username + password) to retrieve issues
from a repository that username has access to. Supports Github API v3.
Forked from: unbracketed/export_repo_issues_to_csv.py
"""
import argparse
import csv
from getpass import getpass
import requests
View module_pattern_fail.brs
module = function() as object
privateApi = function()
print "In a private function!"
end function
return {
publicApi: function()
'Nope! Can't do this - not in scope.
privateApi()
@samdozor
samdozor / MainActivity.java
Created Nov 11, 2015
Branch Example w/ mParticle
View MainActivity.java
public class ExampleActivity extends Activity implements Branch.BranchReferralInitListener {
BroadcastReceiver kitAvailabilityReceiver = null;
/**
* 1. Check if the Branch Kit is active, and if it is then immediately register your deep-link listener
* 2. If it isn't yet active, register a receiver to listen for the ACTIVE broadcast
*/
@Override
protected void onStart() {
You can’t perform that action at this time.