Skip to content

Instantly share code, notes, and snippets.

View leon3s's full-sized avatar
🎯
Focusing

Leo Vernisse leon3s

🎯
Focusing
View GitHub Profile
@pguillory
pguillory / gist:729616
Created December 5, 2010 23:51
Hooking into Node.js stdout
var util = require('util')
function hook_stdout(callback) {
var old_write = process.stdout.write
process.stdout.write = (function(write) {
return function(string, encoding, fd) {
write.apply(process.stdout, arguments)
callback(string, encoding, fd)
}
@leon3s
leon3s / LinearGradient.js
Created November 10, 2017 14:45
LinearGradient expo compatibility with react-native-web
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
const propTypes = {
colors: PropTypes.arrayOf(PropTypes.string),
start: PropTypes.arrayOf(PropTypes.number),
end: PropTypes.arrayOf(PropTypes.number),
style: View.propTypes.style,
children: PropTypes.oneOfType([
PostgreSQL Type PostgreSQL Size Description Range Diesel Type Rust Type
Nullable Types nullable Nullable``