Skip to content

Instantly share code, notes, and snippets.

Hyunwoo Shim hwshim0810

View GitHub Profile
@sbalay
sbalay / FormNormalizeAndFormatValues.js
Last active Feb 11, 2020
Redux-form example with normalize and format
View FormNormalizeAndFormatValues.js
import React from 'react';
import { reduxForm, Field } from 'redux-form';
import { ScrollView, Text, TouchableOpacity } from 'react-native';
import moment from 'moment';
import MyTextInput from './MyTextInput';
/**
* Automatically adds the dashes required by the specified phone format and limits the input to ten characters
*/
@mikeyk
mikeyk / gist:1329319
Created Oct 31, 2011
Testing storage of millions of keys in Redis
View gist:1329319
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])
You can’t perform that action at this time.