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 / 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
@rlingineni
rlingineni / frame.xaml
Created July 4, 2019 19:24
Bottom Sheet Step-1
<Frame x:Name="bottomSheet" HasShadow="true" CornerRadius="8" Padding="1,4,1,0" BackgroundColor="#faf9f8"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent,Property=Height,Factor=.9,Constant=0}"
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,Property=Width,Factor=1,Constant=0}"
RelativeLayout.HeightConstraint="{ConstraintExpression
Type=RelativeToParent,Property=Height,Factor=1,Constant=0}">
</Frame>
@rlingineni
rlingineni / SketchSystems.spec
Last active July 8, 2019 20:48
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
@rlingineni
rlingineni / main.js
Created November 11, 2019 06:37
AWS Lambda and Stripe Example
var stripe = require('stripe')('STRIPE KEY HERE');
var Query = require('url-query-parser');
var AWS = require('aws-sdk');
Date.prototype.addDays = function(days) {
this.setDate(this.getDate() + parseInt(days));
return this;
};
@rlingineni
rlingineni / cavasHelper.ts
Created February 4, 2020 02:10
Aligning Guidelines with Fabric.js + Typescript. This is a modifed version of the code here: https://github.com/fabricjs/fabric.js/blob/master/lib/aligning_guidelines.js
import { fabric } from "fabric";
import { ILineOptions } from "fabric/fabric-impl";
/**
* Should objects be aligned by a bounding box?
* [Bug] Scaled objects sometimes can not be aligned by edges
*
*/
@rlingineni
rlingineni / UserDataEditor.tsx
Last active May 24, 2020 03:17
react-jsonschema-form using Semantic UI without external libraries (focused mainly on array insertions and deletes)
import * as React from "react";
import {
default as Form,
withTheme,
ArrayFieldTemplateProps,
ObjectFieldTemplateProps,
} from "@rjsf/core";
const APP_DATA_SCHEMA = {
title: "Actions and App Editor",
@rlingineni
rlingineni / react-trello-index.d.ts
Created August 2, 2020 04:25
Typings for React Trello
declare class ReactTrelloBoard<CardMetaData> extends React.Component<
ReactTrello.BoardProps<CardMetaData>
> {}
declare module ReactTrello {
/**
* react-trello uses `React.cloneElement`, so these props
* will have to be added to `defaultProps`, otherwise
* TypeScript will (understandably) freak out.
*/
@rlingineni
rlingineni / cleaner.js
Last active December 20, 2021 12:48
Converts flat html files into a directory structure with index.html
/**
* Converts a flat file structure like:
* about.html, features.html, blog.html
* into
* features/index.html, about/index.html, blog/index.html
* Usage: node cleaner.js or node cleaner.js watch
*/
const fs = require("fs")