Skip to content

Instantly share code, notes, and snippets.

@advance512
advance512 / Text.js
Created March 12, 2017 04:03 — forked from amannn/Text.js
Material-UI typography for version 0.x (based on SASS and CSS modules)
import React, {PropTypes} from 'react';
import cx from 'classnames';
import cs from './Text.scss';
/**
* Material-UI doesn't expose the Material Design typography in the
* current stable version, but the upcoming major version does so
* (https://github.com/callemall/material-ui/blob/next/src/Text/Text.js).
* As the upcoming relase is currently in alpha version, this
* component is back-ported so its API can already be used.
@advance512
advance512 / duplicate_dynamodb_table.py
Created January 20, 2015 23:08 — forked from iomz/duplicate_dynamodb_table.py
A tool to duplicate DynamoDB tables.
from traceback import print_exc
from boto.dynamodb2.exceptions import ValidationException
from boto.dynamodb2.fields import HashKey, RangeKey
from boto.dynamodb2.layer1 import DynamoDBConnection
from boto.dynamodb2.table import Table
from boto.exception import JSONResponseError
from time import sleep
import sys
if len(sys.argv) != 3:
@advance512
advance512 / upsert.py
Last active August 29, 2015 14:12 — forked from timtadh/upsert.py
#!/usr/bin/env python
# Copyright (c) 2012, Tim Henderson
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.