Skip to content

Instantly share code, notes, and snippets.

View rlingineni's full-sized avatar
💭
building cool stuff

Raviteja Lingineni rlingineni

💭
building cool stuff
View GitHub Profile
@rlingineni
rlingineni / output.v
Last active November 19, 2017 05:42
Verilog output
time clk Clear State Operation GreenLight RedLight Complete
0 0 0 xx Pressed: x x x x
10 1 1 00 Pressed: x x x 0
20 0 1 00 Pressed: x x x 0
TRYING INVAVLID CODE
30 1 0 00 Pressed: x x x 0
40 0 0 00 Pressed: 3 x x 0
50 1 0 00 Pressed: 3 x x 0
60 0 0 00 Pressed: 3 x x 0
70 1 0 01 Pressed: 3 x 1 0
@rlingineni
rlingineni / pathconverter.js
Created October 29, 2018 00:43
Sourcepath to Nested Object Map
//pass in a csv file
//record looks like this: { item: 'another/test/blank.cpp', org: 'tester', churn: '1' }
//convert the source path to a tree like this:
/*
{
"another": {
"test":{
"blank.cpp":{}
}
@rlingineni
rlingineni / index.js
Created November 4, 2018 06:58
AWS Lambda Proxy Response Builder
// Helper function for AWS Lambda API responses, can pass in JSON or string and status code and message to respond with
function BuildResponse(statusCode, responseBody, shouldStringify = false) {
let body = "invalid response";
if (shouldStringify) {
body = JSON.stringify(responseBody);
} else {
body = JSON.stringify({ msg: responseBody });
}
@rlingineni
rlingineni / SketchSystems.spec
Last active March 6, 2019 18:58
Change Owners Dialog
Change Owners Dialog
Select Only Files -> Approve Ownership
Select only directories-> Render Preview
Select mixture of directory of file -> Render Preview
# Respect the Undo, if the user
Render Preview
Checked Subfolders Option -> Show all files
Unchecked Subfolders Option -> Show only relevant files and folders
@rlingineni
rlingineni / SketchSystems.spec
Last active March 31, 2019 22:17
Pilot Voice Interaction
Pilot Voice Interaction
Request
Pilot Requests -> ATC Confirmation
ATC Confirmation
Pilot Repeats Instruction -> Complete
Complete
@rlingineni
rlingineni / SketchSystems.spec
Created March 31, 2019 22:17
Pilot Talk States
Pilot Talk States
Park
Request Take Off -> Runway
Runway
Clear Take Off -> Traffic Pattern
Request Parking -> Park
Traffic Pattern
Request Landing -> Runway
Stay In Pattern -> Traffic Pattern
Away
@rlingineni
rlingineni / changeCalc.cpp
Created September 20, 2015 18:14
ChangeCalculator Program C++
#include <iostream>
#include <math.h>
using namespace std;
int main() {
//reads from input file, or takes user input. 1st is your total amount, and the second is how much you paid
double total;
//get change
cin >>total;
@rlingineni
rlingineni / SketchSystems.spec
Created June 14, 2019 01:22
Build Break Actions
Build Break Actions
Build Break
Rerun Build -> View Logs
Ping Possbile PR Owners -> Owner Notified
View Logs
Read Logs -> View Logs
Log Actions -> Resolve
@rlingineni
rlingineni / SketchSystems.spec
Last active June 14, 2019 19:34
Build Break Actions
Build Break Actions
Build Break
Rerun Build -> View Logs
Ping Possbile PR Owners -> Owner Notified
View Logs
Read Logs -> View Logs
Log Actions -> Resolve
@rlingineni
rlingineni / SketchSystems.spec
Last active June 17, 2019 17:57
Triage States
Triage States
Active
Assign to New Owner -> Waiting Acknowledgement
Investigating
Sets of Actions -> Pending Sign-Off
Assign to New Owner -> Waiting Acknowledgement
Pending Sign-Off
Finish Actions ->Resolved
Waiting Acknowledgement
Accept -> Investigating