Skip to content

Instantly share code, notes, and snippets.

View Ananthusubramanian's full-sized avatar
🏠
Working from home

Ananthu Subramanian Ananthusubramanian

🏠
Working from home
View GitHub Profile
@Ananthusubramanian
Ananthusubramanian / main1.c
Last active March 30, 2022 13:45
Embedded Labsheet 9
// LaunchPad built-in hardware
// SW1 left switch is negative logic PF4 on the Launchpad
// SW2 right switch is negative logic PF0 on the Launchpad
// red LED connected to PF1 on the Launchpad
// blue LED connected to PF2 on the Launchpad
// green LED connected to PF3 on the Launchpad
// 1. Pre-processor Directives Section
// Constant declarations to access port registers using
// symbolic names instead of addresses
@Ananthusubramanian
Ananthusubramanian / Labsheet10.txt
Last active May 4, 2019 13:20
Embedded labsheet 10
// LaunchPad built-in hardware
// SW1 left switch is negative logic PF4 on the Launchpad
// SW2 right switch is negative logic PF0 on the Launchpad
// red LED connected to PF1 on the Launchpad
// blue LED connected to PF2 on the Launchpad
// green LED connected to PF3 on the Launchpad
// 1. Pre-processor Directives Section
// Constant declarations to access port registers using
// symbolic names instead of addresses
@Ananthusubramanian
Ananthusubramanian / Submit.js
Last active July 29, 2020 12:34
Evaluation submit in AUMS Amrita automate
document.getElementById("form-branch::categorySection::itemrow::renderedItem::nextrow:1:verticalDisplay::scaleOption:0:radioValue").checked = true;
document.getElementById("form-branch::categorySection::itemrow:1:renderedItem::nextrow:2:verticalDisplay::scaleOption:0:radioValue").checked = true;
document.getElementById("form-branch::categorySection::itemrow:2:renderedItem::nextrow:3:verticalDisplay::scaleOptions:0:choiceValue").checked = true;
document.getElementById("form-branch::categorySection::itemrow:3:renderedItem::nextrow:4:verticalDisplay::scaleOptions:0:choiceValue").checked = true;
document.getElementById("form-branch::categorySection::itemrow:4:renderedItem::nextrow:5:verticalDisplay::scaleOptions:0:choiceValue").checked = true;
document.getElementById("form-branch::categorySection::itemrow:5:renderedItem::nextrow:6:verticalDisplay::scaleOption:0:radioValue").checked = true;
document.getElementById("form-branch::categorySection::itemrow:6:renderedItem::nextrow:7:verticalDisplay::scaleOptions:0:choi
@Ananthusubramanian
Ananthusubramanian / Program.js
Last active March 9, 2019 09:21
Algorithm 3
var array_length;
/* to create MAX array */
function heap_root(input, i) {
var left = 2 * i + 1;
var right = 2 * i + 2;
var max = i;
if (left < array_length && input[left] > input[max]) {
max = left;
}