Skip to content

Instantly share code, notes, and snippets.

View conrad-vanl's full-sized avatar

Conrad VanLandingham conrad-vanl

View GitHub Profile
import React, { Component } from 'react';
import { View, Text, FlatList } from 'react-native';
const style = {
justifyContent: 'center',
alignItems: 'center',
height: 100,
margin: 25,
borderWidth: 1,
borderColor: 'black',
@conrad-vanl
conrad-vanl / index.ios.js
Last active July 21, 2016 20:46
Differential Sharing n' Caring: Intro to React-Native Animated library and Springs
// Imports
import React, { Component } from 'react';
import {
Animated,
AppRegistry,
StyleSheet,
Text,
View,
Dimensions,
TouchableHighlight,
@conrad-vanl
conrad-vanl / steps.md
Last active August 29, 2015 14:06
BoatDay Deployment Procedure
  • Make sure all GIT repos are up to date and commited
  • Transfer Parse app to Client
  • Confirm functionality of Parse keys in CMS App after transfer
  • Confirm functionality of Parse keys in iOS App after transfer
  • Confirm functionality of Parse keys in Payments Backend App after transfer
  • Get client Braintree Credentials, obtain API Keys
  • Set the heroku app to use new Braintree Credentials
  • Link the CMS up to the new Braintree portal endpoints
  • Make sure iOS app is using proper Braintree Credentials
  • Setup New Relic monitoring and email alerts on Payments Backend
curl -H "Origin: http://localhost" \
-H "Access-Control-Request-Method: GET" \
-H "Access-Control-Request-Headers: Authorization" \
-X OPTIONS --verbose \
https://api.knod.com/example-endpoint
<?xml version="1.0" encoding="UTF-8"?>
<log>
<version>1.1</version>
<creator>
<name>Internet Explorer Network Inspector</name>
<version>9.0.8112.16421</version>
</creator>
<browser>
<name>Internet Explorer</name>
<version>9.0.8112.16421</version>
@conrad-vanl
conrad-vanl / .gitignore
Last active December 14, 2015 14:29 — forked from Taylor4484/Schema.xml
*.py[cod]
# C extensions
*.so
# Packages
*.egg
*.egg-info
dist
build
@conrad-vanl
conrad-vanl / authManager.coffee
Last active October 10, 2015 19:48
Basic Auth manager for Ember
App.authManager = Ember.StateManager.create
# The "stack" contains the currently logged-in user
stack: []
# Callbacks to be ran once the user is authenticated
callbacks: {}
# Grabs the current auth object and returns it
# If callback argument is given, will run the callback function with current auth object as first argument
class Person
include MongoMapper::Document
one :address, :as => :addressable
end
class Address
include MongoMapper::Document
belongs_to :addressable, :polymorphic => true
end
# Console: