Skip to content

Instantly share code, notes, and snippets.

View bradbyte's full-sized avatar

BradByte bradbyte

  • Angel Studios
  • Texas
View GitHub Profile
import React, { Component } from 'react';
import {
PanResponder,
Animated,
StyleSheet
} from 'react-native';
export default class Draggable extends Component {
state = {
panY: new Animated.Value(0),
v6.10.0
3.10.10
serverless-api@0.0.0 /Volumes/Machintosh HD2/Documents/Catalyst Chat/Code/catalyst-chat-api
├── archy@1.0.0 extraneous
├─┬ aws-sdk@2.46.0
│ ├─┬ buffer@4.9.1
│ │ ├── base64-js@1.2.0
│ │ ├── ieee754@1.1.8
│ │ └── isarray@1.0.0
│ ├── crypto-browserify@1.0.9
@bradbyte
bradbyte / dynamodb_alias.md
Last active March 8, 2017 14:11
AWS DynamoDB Local Shell Alias Script

Having installed the AWS DynamoDB Local client, I extracted the contents into my home directory (~/dynamodb_local_latest). Next, I wanted the ability to create an alias so I could start the server from the terminal regardless where my current directory is.

I added this alias to the end of my .zshrc file.

.zshrc (or .bashrc)

alias dynamodb="java -Djava.library.path=~/dynamodb_local_latest/DynamoDBLocal_lib -jar ~/dynamodb_local_latest/DynamoDBLocal.jar -sharedDb"

Now, you can run dynamodb and the server will start up!