Skip to content

Instantly share code, notes, and snippets.

View Vatyx's full-sized avatar
💭
🎉

Sahil Dhanju Vatyx

💭
🎉
View GitHub Profile
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++)
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() {
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() {
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
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);