Skip to content

Instantly share code, notes, and snippets.

@f15gdsy
f15gdsy / .dockerignore
Last active January 22, 2018 03:25
Dockerfile nginx-node
node_modules
@f15gdsy
f15gdsy / FlatTextInput.jsx
Created September 2, 2015 07:20
A <input type='text'> that hides border, and shows it when hover.
'use strict';
import React from 'react';
import _ from 'lodash';
export default React.createClass ({
propTypes: {
// Show border on hover and hide otherwise.
borderOnHover: React.PropTypes.bool
@f15gdsy
f15gdsy / ResponsiveChart.jsx
Created September 1, 2015 08:12
A wrapper that makes the React-D3-Component charts responsive.
'use strict';
import React from 'react';
import D3 from 'react-d3-components';
let {
BarChart,
LineChart,
AreaChart,
ScatterPlot,
@f15gdsy
f15gdsy / ExpandingTextInput.jsx
Last active August 31, 2015 14:49
An TextInput component for React Native that auto scales the height itself as the user types.
var React = require('react-native')
var {
TextInput,
StyleSheet
} = React;
var RCTUIManager = require('NativeModules').UIManager;
var findNodeHandle = require('findNodeHandle');
var _ = require('lodash');