Skip to content

Instantly share code, notes, and snippets.

View robertvunabandi's full-sized avatar

Robert M. Vunabandi robertvunabandi

View GitHub Profile
Number of frames = 1
Input file path is: input/apple.in_new
---- RESULTS ----
Elapsed execution time: 0.014831s
0 Line-Wall Collisions
1 Line-Line Collisions
---- END RESULTS ----
Number of frames = 2
Input file path is: input/apple.in_new
---- RESULTS ----
time-sec llvm-ir-instructions cilk-spawns
0.000185 174 7
0.000197 174 7
0.000200 174 7
0.000189 174 7
0.000227 174 7
0.000193 174 7
0.000195 174 7
0.000201 174 7
0.000231 174 7
time-sec function-calls llvm-ir-instructions
0.000159 16 112
0.000135 16 112
0.000132 16 112
0.000125 16 112
0.000126 16 112
0.000130 16 112
0.000131 16 112
0.000148 16 112
0.000142 16 112
@robertvunabandi
robertvunabandi / README-Template.md
Created February 9, 2019 15:42 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@robertvunabandi
robertvunabandi / Calculator.js
Last active September 2, 2022 16:56
Simple calculator implementation using Finite State Machines.
"use strict";
class Calc {
constructor() {
this._setToBaseState();
}
_setToBaseState() {
// find static methods at end of Calc class
this.__FIRST = "0";
@robertvunabandi
robertvunabandi / combinations.js
Created August 6, 2017 21:54
Generates all possible combinations of size _k_ of an array _array_ (both specified in parameters).
/**
* Copyright (c) 2017 Robert M. Vunabandi
* Created August 6th, 2017
* Licensed under the MIT license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@robertvunabandi
robertvunabandi / Tree.py
Created June 29, 2017 06:01
Project Euler #31
def Tree3(s, p, c, L):
# attempts the same as &Tree and &Tree2 with a different approach
# this assumes that p is ordered from smallest to highest
res = 0
lfinal = set()
for i in range(len(p)):
pos = [L]
tSum = c
while tSum < s:
pos.append(pos[-1]+[p[i]])