Skip to content

Instantly share code, notes, and snippets.

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

Ken Vermeille kvermeille

:shipit:
Kicking Butt
View GitHub Profile
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
}
@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
extension UIImage {
convenience init(view: UIView) {
UIGraphicsBeginImageContext(view.frame.size)
view.layer.renderInContext(UIGraphicsGetCurrentContext()!)
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
self.init(CGImage: image.CGImage!)
}
}

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.
@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);
@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 / 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 / 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
#### 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: