A Pen by Chris Goodmacher on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create | |
q = Question.create(params[:question]) | |
@auth.questions << q | |
binding.pry | |
params[:answers].each do |answer_hash| | |
a1 = Answer.create(answer_hash.to_param) | |
q.answers << a1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class IntBST { | |
private IntNode rootNode; | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
IntBST bst = new IntBST(); | |
while(true) { | |
System.out.print("print, gt or insert: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Search { | |
private Search() { | |
super(); | |
} | |
/** | |
* @param array A sorted array of ints to search through. This must be sorted. | |
* @param searchTerm An int to search the array for | |
* @return Whether the searchTerm exists in the array | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with IntelliJ IDEA. | |
* User: cgoodmac | |
* Date: 8/5/13 | |
* Time: 6:49 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
public class Logger { | |
private static Logger thisInstance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
/* | |
* Your assignment: This class will copy all the files in one directory to another directories | |
* in series (not in parallel). You are to modify this to copy multiple files in parallel using threads. | |
*/ | |
public class DirectoryCopier { | |
private static final int BUFFER_SIZE = 1024; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GOAL | |
To make a beautiful "about" page for Octocat. We want to make it very clear who he is, and we want to provide the best links to more information about him and Github. | |
The final product should look like this: http://cgoodmac.wpengine.com/wp-content/uploads/2015/07/PFNP-octocat-comp.png | |
# RESOURCES | |
## Images: | |
Octocat: http://octodex.github.com/images/Professortocat_v2.png |
let's say i'm make a new gist. oooh i want to say this code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.dropbox.com/s/e1lffx4yhen4bae/travel_student.zip |