Skip to content

Instantly share code, notes, and snippets.

View kvermeille's full-sized avatar
:bowtie:
Kicking Butt

Ken Vermeille kvermeille

:bowtie:
Kicking Butt
View GitHub Profile
#### Summary:
What does this pull request do in general terms?
#### Intended Effect:
What is the expected effect of the pull request? Specifically, indicate how the behavior will be different than before the pull request.
#### How to Verify:
@kvermeille
kvermeille / Android Tracking
Last active October 13, 2015 17:12
Mixpanel Guide
//Installation
https://mixpanel.com/help/reference/android#installing-as
//Track User
mixpanel.identify("13793");
//Regular Event
mixpanel.track("Some Event");
//Event with properties
@kvermeille
kvermeille / gist:ac9f1359ae317f7c1e62
Last active December 21, 2015 04:12
Automatic Build Name - Android
/*
* Gets the version name from the latest Git tag
*/
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
@kvermeille
kvermeille / bruteforceZip.js
Created December 28, 2015 16:01
A naive nodejs script to brute force password protected zip files, with all password that match /[a-z]+/
// zipping:
// zip -e target.zip file.something #...prompt for password
// unzipping:
// 7z e target.zip -pPASSWORD
////////////////////
function Dictionary(ab) {
this.ab = ab;
@kvermeille
kvermeille / custom-error.js
Last active February 12, 2016 06:04 — forked from justmoon/custom-error.js
Creating custom Error classes in Node.js
'use strict';
module.exports = function VError(message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.extra = extra;
};
require('util').inherits(module.exports, Error);

Feature Protocol

A guide for completing a feature using version control and Trello.

Project Management


Next Up

  • Prioritized list of all cards vetted and ready for design & development.
extension UIImage {
convenience init(view: UIView) {
UIGraphicsBeginImageContext(view.frame.size)
view.layer.renderInContext(UIGraphicsGetCurrentContext()!)
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
self.init(CGImage: image.CGImage!)
}
}
@kvermeille
kvermeille / postinstall.js
Created May 9, 2019 23:47 — forked from jaredpalmer/postinstall.js
React Native Web x TypeScript
// ./postinstall.js
'use strict';
const fs = require('fs');
const RN_TSD = __dirname + '/node_modules/@types/react-native/index.d.ts';
const raw = fs.readFileSync(RN_TSD);
// Fix @types/node conflict
// @see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15960
import React from 'react'
import { StyleSheet, TextInput } from 'react-native'
import { Formik } from 'formik'
import Spinner from 'react-native-loading-spinner-overlay'
export interface IFormDataModel {
field1: number
field2: string
}
const fs = require('fs');
const licenses = JSON.parse(fs.readFileSync('licenses.json', 'utf8'));
const output = fs.createWriteStream('all_licenses.txt');
for (const [packageName, licenseInfo] of Object.entries(licenses)) {
const { licenses, licenseFile } = licenseInfo;
output.write(`Package: ${packageName}\n`);
output.write(`Licenses: ${licenses}\n`);
if (licenseFile) {