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
<html> | |
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/build/GlslCanvas.js"></script> | |
<body> | |
<canvas class="glslCanvas" data-fragment= | |
" | |
// HW2: Shader using Random Number Generator | |
// Ambika Yadav | |
// Vornoi Distance Shader |
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
Task_Data= [ | |
{"Workload": "0.6", "Risk": "0.3", "ExpectedDuration": "30", "Task_Name": "Task A", "Start_Date": "01/01/2016", "Resources": ["H1","H2","M1","R1","R2","R3","R4"]}, | |
{"Workload": "0.4", "Risk": "0.6", "ExpectedDuration": "20", "Task_Name": "Task B", "Start_Date": "01/20/2016", "Resources": ["H2","H3","O1","M1","M2","R2","R4"]}, | |
{"Workload": "0.6", "Risk": "0.1", "ExpectedDuration": "10", "Task_Name": "Task C", "Start_Date": "01/25/2016", "Resources": ["H4","O1","O2","R1","R5"]}, | |
{"Workload": "0.3", "Risk": "0.4", "ExpectedDuration": "50", "Task_Name": "Task D", "Start_Date": "02/25/2016", "Resources": ["H4","H5","H3","O1","O2","R1","R5","R7","R8"]}, | |
{"Workload": "0.8", "Risk": "0.5", "ExpectedDuration": "24", "Task_Name": "Task E", "Start_Date": "03/15/2016", "Resources": ["H5","H3","O1","O3","R1","R8"]}, | |
{"Workload": "0.6", "Risk": "0.2", "ExpectedDuration": "30", "Task_Name": "Task F", "Start_Date": "04/20/2016", "Resources": ["H4","H2","O1","O4","R1","R5","R6"]}, | |
{"Workload": "0.2", "Risk |
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
function convex_hull(points_array) | |
{ | |
// CONVEX HULL USING GRAHAM SCAN | |
var convex_points_array = new Array(); | |
// STEP1 : Find the lowest y and lowest x coord point . Call it P0. P[y_coord_min_index] has the minimum y . | |
var y_coord_max = 0 ; | |
for ( var i = 0 ; i < points_array.length ; i ++) | |
{ | |
if(points_array[i].y>y_coord_max) |
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
function convex_hull(points_array) | |
{ | |
// CONVEX HULL USING GRAHAM SCAN | |
var convex_points_array = new Array(); | |
// STEP1 : Find the lowest y and lowest x coord point . Call it P0. P[y_coord_min_index] has the minimum y . | |
var y_coord_max = 0 ; | |
for ( var i = 0 ; i < points_array.length ; i ++) | |
{ | |
if(points_array[i].y>y_coord_max) |
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
<!-- | |
HOMEWORK4 | |
AMBIKA YADAV | |
--> | |
<html> | |
<head> | |
<title>HOME WORK 4</title> | |
<style> | |
body { | |
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
# Ambika Yadav | |
# MAT 594E : Open/ Close Doors | |
doorlist = ["closed"]*100 | |
for i in range(1,101): | |
for j in range(1,101): | |
if (j*i <100): | |
if(doorlist[(j*i)-1]=="closed"): | |
doorlist[(j*i)-1] ="open" ; |
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
<h></h> |