Skip to content

Instantly share code, notes, and snippets.

View bretth18's full-sized avatar
💻

Brett Henderson bretth18

💻
View GitHub Profile
@bretth18
bretth18 / PlatformTestingInstructions(Win8-10).txt
Last active October 12, 2015 03:54
Platform Testing Spootipy framework's trackplayertest.py
**Instructions for Windows 8/10 Users**
#Pre-Req's#
-Python 2.7/3.x
-libspotify module
-A functional Spotify Premium Account
-Command Line Knowledge!
@bretth18
bretth18 / Materialized Portfolio.markdown
Created April 15, 2016 05:21
Materialized Portfolio
import React from 'react';
import { Meteor } from 'meteor/meteor';
Contact = React.createClass({
render(){
return(
<div>
</div>
Contact = React.createClass({
render(){
return (
<div className="container">
<div className="card-panel">
<div className="row">
<h4>Contact Me</h4>
<form className="col s12" onSubmit={this.onSubmit}>
<div className="row">
<div className="input-field col m6 s12">
onSubmit(e){
// grab form elements using jquery... i think there's a better way for this.
e.preventDefault();
var element = $(e.target);
var firstName = element.find("#firstName").val();
var lastName = element.find("#lastName").val();
var emailVal = element.find("#emailVal").val();
var companyVal = element.find("#companyVal").val();
if(Meteor.isServer){
Meteor.methods({
sendEmail:function(subForm){
var sparky = new SparkPost(process.env.SPARKPOST_AUTHKEY);
sparky.transmissions.send({
transmissionBody: {
content: {
from: '[email protected]', // take in users email for from
subject: subForm.email_val +' contacted you!',
import React, {
Linking,
Platform,
ActionSheetIOS,
Dimensions,
View,
Text,
Navigator,
Component,
ListView,
@bretth18
bretth18 / child-component.jsx
Created May 12, 2016 18:37
child component
import React, {
Linking,
Platform,
ActionSheetIOS,
Dimensions,
View,
Text,
Navigator,
Component,
ListView,
class ListComment extends Component {
constructor(props){
super(props);
this.state = {
// prop is an init value, legal baby
commentId: this.props.comment.id,
};
}
// handle time precision
@bretth18
bretth18 / console_output_test4
Last active December 3, 2016 05:43
linked lists
Running tests for sequence Class with a linked sequence
START OF TEST 4:
Testing the copy constructor (2 points).
Copy constructor test: for an empty sequence.
COPIED SEQUENCE: SIZE: 0
ATTACH COND 1
SEQUENCE: 1