Skip to content

Instantly share code, notes, and snippets.

View jasonmerino's full-sized avatar
👋
Hey there!

Jason Merino jasonmerino

👋
Hey there!
View GitHub Profile
@jasonmerino
jasonmerino / last-week-on-github.js
Created September 30, 2014 15:38
Get a users submitted pull requests for a specific organization and repo
javascript:(function () {
function twoDigits(number) {
return number.toString().length === 1 ? '0' + number : number;
}
var date = new Date((new Date()).getTime()-1000*60*60*24*7),
org = 'jquery',
repo = 'jquery',
filters = [
'is:pr',
'author:jasonmerino',
@jasonmerino
jasonmerino / opt-out.js
Last active August 29, 2015 14:13
Mobile Opt In/Out
javascript:(function () {
var query = window.location.search,
params = {},
key,
value;
query = query.indexOf('?') === 0 ? query.substring(1, query.length) : query;
query = query.split('&');
<snippet>
<content><![CDATA[
console.log(require('util').inspect(${1:this}, {
depth: ${2:null},
colors: ${3:true}
}));
]]></content>
<!-- Set the tab trigger to nlog (node log) -->
<tabTrigger>nlog</tabTrigger>
<!-- Set the file scope to .js files -->
@jasonmerino
jasonmerino / pinner-basics-1.js
Created November 23, 2015 21:32
pinner-basics-1.js
var React = require('react-native');
var {
View
} = React;
var Pinner = React.createClass({
render() {
return (
@jasonmerino
jasonmerino / pinner-basics-2.js
Created November 23, 2015 21:40
pinner-basics-2.js
var DeviceEventEmitter = require('RCTDeviceEventEmitter');
@jasonmerino
jasonmerino / pinner-basics-3.js
Created November 23, 2015 21:41
pinner-basics-3.js
componentWillMount() {
this.addListenerOn(DeviceEventEmitter, 'keyboardWillShow', this.onKeyboardWillShow);
},
@jasonmerino
jasonmerino / pinner-basics-4.js
Created November 23, 2015 21:42
pinner-basics-4.js
mixins: [Subscribable.Mixin],
#!/usr/bin/env node
const prog = require('caporal');
const {
exec,
cd,
} = require('shelljs');
function trimTrailingNewLine(str) {
if (str.endsWith('\n')) {
@jasonmerino
jasonmerino / icon-resizer.sh
Created August 24, 2018 16:50
An icon resizing script for iOS projects.
#!/bin/bash
# About
# This script will resize your original app icon into all needed
# icon sizes. Images will be created in the same folder as this
# script. From there you just need to drag them to the appropriate
# image locations in Xcode.
#
# Usage
# 1. Move this script and your source image into the same directory.
import React, { FC } from 'react';
import { ViewProps, View, FlexAlignType } from 'react-native';
interface IProps extends ViewProps {
alignVertical?:
| 'flex-start'
| 'flex-end'
| 'center'
| 'space-between'
| 'space-around'