This file contains hidden or 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
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', |
This file contains hidden or 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
javascript:(function () { | |
var query = window.location.search, | |
params = {}, | |
key, | |
value; | |
query = query.indexOf('?') === 0 ? query.substring(1, query.length) : query; | |
query = query.split('&'); |
This file contains hidden or 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
<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 --> |
This file contains hidden or 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
var React = require('react-native'); | |
var { | |
View | |
} = React; | |
var Pinner = React.createClass({ | |
render() { | |
return ( |
This file contains hidden or 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
var DeviceEventEmitter = require('RCTDeviceEventEmitter'); |
This file contains hidden or 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
componentWillMount() { | |
this.addListenerOn(DeviceEventEmitter, 'keyboardWillShow', this.onKeyboardWillShow); | |
}, |
This file contains hidden or 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
mixins: [Subscribable.Mixin], |
This file contains hidden or 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
#!/usr/bin/env node | |
const prog = require('caporal'); | |
const { | |
exec, | |
cd, | |
} = require('shelljs'); | |
function trimTrailingNewLine(str) { | |
if (str.endsWith('\n')) { |
This file contains hidden or 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
#!/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. |
This file contains hidden or 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 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' |