Skip to content

Instantly share code, notes, and snippets.

View evanjmg's full-sized avatar
👨‍💻
actively contributing

Evan Gillogley evanjmg

👨‍💻
actively contributing
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
@evanjmg
evanjmg / gulp-browserify-sample.js
Last active January 21, 2021 19:31
Browserify Sample
// Paths is a nodejs global object with path url string we're using to specify our bundle
const gulp = require('gulp');
const browserify = require('browserify');
const gutil = require('gulp-util');
const source = require('vinyl-source-stream'); // Convert our stream to an output vinyl
const sourcemaps = require('gulp-sourcemaps'); // We need to include the sourcemaps for our files
const ngAnnotate = require('browserify-ngannotate'); // e.g Browserify plugin to make sure Angular dependencies will work on minification
const buffer = require('vinyl-buffer'); // This finishes what source stream started
/* BROWSERIFY SETTINGS */
import Config from 'react-native-config'
import { IBaseColor } from './color'
export enum ThemeProvider {
velocity = 'velocity',
appB = 'appB',
}
interface ITheme {
ThemeLogo: any // img asset
ThemeLogoWithText: any // img asset
IOS_RELEASE_TYPE=appstore
ITUNES_CONNECT_TEAM_ID=7325235
APPLE_TEAM_ID=2352352
PRODUCT_BUNDLE_IDENTIFIER=com.appb.consumer
APPLE_CI_USERNAME=yourusername@gmail.com
CRASHALYTICS_IOS_KEY=1242kj4jk24
BRANCH_SCHEME=appB
BRANCH_HOST=myappb.co
BRANCH_PREFIX=/dsgg
BRANCH_KEY=key_live_made_up_key
...
flavorDimensions "client", "environment"
productFlavors {
production {
dimension "environment"
resValue "string", "build_config_package", "com.appB.consumer" // this is a placeholder - will be replaced on build
}
staging {
dimension "environment"
#!/bin/bash
set -e
GREEN='\033[0;32m'
YELLOW='\033[0;93m'
RED='\033[0;31m'
CYAN='\033[0;36m'
NC='\033[0m'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
export interface IBaseColor {
// main colors
ACCENT: string
WHITE: string
SURFACE: string
PRIMARY: string
BACKGROUND: string,
ON_SURFACE: string
ON_BACKGROUND: string
HIGHLIGHTED_PRIMARY: string // highlighted primary is equalivalent on primary
|-- .env.velocity.staging
|-- .env.velocity.production
|-- .env.appB.staging
|-- .env.appB.production
@evanjmg
evanjmg / circular-linked-list.js
Created February 3, 2019 19:46
Rotation of Circular Linked List without Tail
const createNode = (value) => ({
value,
next: null,
})
class CircularLinkedList {
constructor() {
this.length = 0
this.head = null
}
push(value) {