Skip to content

Instantly share code, notes, and snippets.

View codyduval's full-sized avatar
🤙

Cody Duval codyduval

🤙
View GitHub Profile

Keybase proof

I hereby claim:

  • I am codyduval on github.
  • I am codyduval (https://keybase.io/codyduval) on keybase.
  • I have a public key whose fingerprint is E5C8 E770 7528 5311 3530 3905 E07D 7E85 FC81 8E82

To claim this, I am signing this object:

@codyduval
codyduval / react-sample-ui.js
Created February 2, 2015 16:22
This is a sample user interface built in React.js.
/** @jsx React.DOM */
var SessionsBox = React.createClass({
handleSelect: function (e) {
this.props.onSelect(e);
},
handleFilter: function(semesterName) {
var filteredSessions = _.filter(this.props.initialSessions, { 'semester': semesterName });
this.setState({
@codyduval
codyduval / gist:ed29e1fa5eb1ca7d72fb
Created January 7, 2015 19:59
React Components Example
var PostsList = React.createClass({
getInitialState: function() {
return { posts: this.props.initialPosts };
},
render: function() {
var posts = this.state.posts.map(function(post) {
return <Post key={post.id} post={post} />;
});
11 def introduction
12 @user = current_user
13 unless @user.taste_profile
14 @taste_profile = @user.build_taste_profile
15 render 'introduction.html.haml', :layout => 'numokha.html.haml'
16 @taste_profile.save
17 if session[:return_to]
18 redirect_to session[:return_to]
19 end
20 else
import java.util.Scanner;
import java.util.*;
public class go {
public static void main(String[] args) {
ArrayList<Character> wordCharacters = new ArrayList<Character>();
@codyduval
codyduval / gist:4741123
Created February 8, 2013 18:57
Syllabus for General Assembly's Software Engineering at Scale Course - Winter 2012
Session 1:
Using an IDE, components of a computer, Java programming overview, compiled vs. interpreted language, static vs. dynamic languages.
Session 2:
Source control, code reviews, naming conventions, debugging in Eclipse, intro to data structures
Session 3:
Data structures: arrays, lists, stacks, queues Asymptotic notation (Big “Oh”)
Session 4: