This file contains hidden or 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
| void flapOptimization() | |
| { | |
| vector<unsigned int> vertexCount(g.halfmesh.totalVerts); | |
| vector<HE_Face*> faceTracker(g.halfmesh.totalVerts); | |
| map<unsigned int, HE_Face*> flaps; | |
| for(unsigned int i = 0; i < g.halfmesh.totalFaces; i++) | |
| { | |
| for(unsigned int j = 0; j < 3; j++) |
This file contains hidden or 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 void run() { | |
| try { | |
| String response = HttpRequest.post("http://ec2-52-38-4-62.us-west-2.compute.amazonaws.com/") | |
| .contentType("application/json") | |
| .accept("application/json") | |
| .send("{\"hello\":\"" + concatStringsWSep(allTweets, " ") + "\"}") | |
| .body(); | |
| final JSONObject what = new JSONObject(response); | |
| url_done = what.getString("img"); | |
| runOnUiThread(new Runnable() { |
This file contains hidden or 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 void run() { | |
| try { | |
| String response = HttpRequest.post("http://ec2-52-38-4-62.us-west-2.compute.amazonaws.com/") | |
| .contentType("application/json") | |
| .accept("application/json") | |
| .send("{\"hello\":\"" + concatStringsWSep(allTweets, " ") + "\"}") | |
| .body(); | |
| final JSONObject what = new JSONObject(response); | |
| url_done = what.getString("img"); | |
| runOnUiThread(new Runnable() { |
This file contains hidden or 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 find_it (numbers): | |
| biggest, smaller = None, None | |
| for x in numbers: | |
| if x >= biggest: | |
| biggest, smaller = x, biggest | |
| elif biggest > x > smaller: | |
| smaller = x | |
| return smaller | |
| print smaller |
This file contains hidden or 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
| var horizontalLines = (function() { | |
| var playing = false; | |
| var callback = _.identity; | |
| var distance = min_dimension * 0.5; | |
| var line = two.makeLine(-width, center.y - center.y * .25, 0, center.y - center.y * .25); | |
| var line2 = two.makeLine(width, center.y + center.y * .25, 2*width, center.y + center.y * .25); |
NewerOlder