Skip to content

Instantly share code, notes, and snippets.

View quicksnap's full-sized avatar
🎮
GitHub has statuses?!

Dan Schuman quicksnap

🎮
GitHub has statuses?!
View GitHub Profile
//Name: Derrik Fleming
//Class: CS162
//Prof: Karla Fant
#include <iostream>
using namespace std;
@quicksnap
quicksnap / gist:2625584
Created May 7, 2012 02:49 — forked from anonymous/gist:2625583
Test Gist DIFF
//Name: Derrik Fleming
//Class: CS162
//Prof: Karla Fant
#include <iostream>
#include <fstream>
#include <stdlib.h>
using namespace std;
@quicksnap
quicksnap / post-merge.rb
Created September 1, 2012 22:23 — forked from jmeridth/post-merge.rb
Somewhat hacky post-merge hook for rails bundle/migration updates
#!/usr/bin/env ruby
def is_mac?
RUBY_PLATFORM.downcase.include?("darwin")
end
def getc_input
# http://stackoverflow.com/a/174967/250407
# http://bit.ly/PMZdKv
begin
@quicksnap
quicksnap / main.cpp
Last active December 20, 2015 15:19 — forked from anonymous/MAIN.CPP
#include <iostream>
#include <iomanip>
#include <string>
#include <cmath>
using namespace std;
// declaring the functions
double findInt( double intRate, int yearlyPayments );
double loanAmountFunc( double i, double y, double periodicPayment );
double monthlyPaymentFunc( double i, double y, double periodicPayment );
@quicksnap
quicksnap / somebs.js
Last active October 1, 2015 22:18
simple react example
var React = require('react');
var TodoBox = React.createClass({
render: function() {
return (
<div className="todoBox">
<h1>Todos</h1>
<TodoList data={this.props.data} />
<TodoForm />
</div>
import React from 'react';
import { connect } from 'react-redux';
import Vote from './Vote';
import Winner from './Winner';
export default function Voting(props) {
return (
<div className="voting">
import React, { Component } from 'react';
const BTC_URL = 'http://54.213.83.132/hackoregon/http/oregon_individual_contributors/';
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
sortOrder: 'ascending',
data: [],
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import axios from 'axios';
import Product from '../../models/Product'
// Note the special import here!
interface ICardCollectionProps {
}