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 / event.json
Created August 28, 2017 17:40
AWS Lambda Proxy Event
{
"message": "Hello me!",
"input": {
"path": "/test/hello",
"headers": {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate, lzma, sdch, br",
"Accept-Language": "en-US,en;q=0.8",
"CloudFront-Forwarded-Proto": "https",
"CloudFront-Is-Desktop-Viewer": "true",
module testMul3 ;
reg [7:0] in ;
reg error ;
wire out ;
Multiple_of_3 dut(in, out) ;
initial begin
in = 0 ; error = 0 ;
@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 / index.js
Last active May 15, 2021 21:43
Signed Cookie Auth in AWS Lambda
"use strict";
const AWS = require('aws-sdk');
const serverless = require('serverless-http');
const Koa = require('koa');
const Router = require('koa-router');
const crypto = require('crypto');
const bodyParser = require('koa-bodyparser');
const fs = require("fs");
const app = new Koa();
@rlingineni
rlingineni / index.html
Last active October 22, 2019 02:10
Semantic UI Hello World
<!DOCTYPE html>
<html>
<script src="js/semantic.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/semantic.min.css">
<head>
<title>Hello World!</title>
</head>
<body>
@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