This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const writeBase64StringAsBlob = (dataUrl: string): Blob => { | |
const mimeType = dataUrl.slice('data:'.length, dataUrl.indexOf(';')); | |
const data = dataUrl.slice(doc.indexOf(';base64,') + ';base64,'.length); | |
const arrayBufferView = base64ToArrayBuffer(data); | |
const blob = new Blob([arrayBufferView], { | |
type: mimeType }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Params } from '@angular/router'; | |
import { BehaviorSubject } from 'rxjs'; | |
export class MockActivatedRoute { | |
private innerTestParams?: any; | |
private subject?: BehaviorSubject<any> = new BehaviorSubject(this.testParams); | |
params = this.subject.asObservable(); | |
queryParams = this.subject.asObservable(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const myHeaders = new Headers(); | |
myHeaders.append('mobileorigin-device', 'true'); | |
myHeaders.append('Content-Type', 'application/pdf') | |
myHeaders.append('Cookie', localStorage.getItem('set-cookie')) | |
fetch(url, {method: 'GET', mode: 'cors', headers: myHeaders}).then(res => console.log(res)) | |
const oReq = new XMLHttpRequest(); | |
oReq.open('GET', url, true); | |
oReq.setRequestHeader("mobileorigin-device", "true"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function janrainCaptureWidgetOnLoad() { | |
janrain.events.onCaptureLoginStart.addHandler(function (event) { | |
console.log('** on capture login start ***'); | |
console.log(event); | |
}) | |
janrain.events.onCaptureLoginSuccess.addHandler(function (event) { | |
// do stuff | |
console.log('** on capture login success ***'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check for common build submission issues | |
# Description for Camera / Calendar plist entries | |
# Androud min and target SDK matches standards | |
# Icons must not contain alpha channels | |
# Adobe Anaylics app name etc | |
import plistlib | |
import sys | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="skeleton-board" [class.fade-out]="hasDataLoaded"> | |
<div class="skeleton-board--circle"></div> | |
<div class="skeleton-board--remaining-days-container"> | |
<div class="skeleton-board--remaining-days">{{remainingDays}} {{daysText}}</div> | |
<h2 class="until-quit-date">{{untilYourQuitDateText}}</h2> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
skeleton-board { | |
$skeletonColor : #ececec; | |
$animationDuration : 1500ms; | |
.skeleton-dashboard { | |
// position the skeleton cards absolute, | |
// this way a nice crossfade is possible | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page-create-account-email { | |
.div-terms-body{ | |
float: right; | |
width: 90%; | |
text-align: -webkit-left; | |
} | |
.page-create-account-email { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header> | |
<ion-navbar> | |
<ion-title>{{createAccountTitle}}</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content class="page-create-account-email" padding> | |
<div class="page-create-account-email--main-text" text-center [innerHTML]="this.createAccountBodyText"> | |
</div> | |
<ion-list> | |
<form [formGroup]="emailForm" (ngSubmit)="onSubmit()"> |
NewerOlder