Skip to content

Instantly share code, notes, and snippets.

💭
building cool stuff

Raviteja Lingineni rlingineni

💭
building cool stuff
View GitHub Profile
View react-trello-index.d.ts
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 / UserDataEditor.tsx
Last active May 24, 2020
react-jsonschema-form using Semantic UI without external libraries (focused mainly on array insertions and deletes)
View UserDataEditor.tsx
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 / cavasHelper.ts
Created Feb 4, 2020
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
View cavasHelper.ts
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 / main.js
Created Nov 11, 2019
AWS Lambda and Stripe Example
View main.js
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;
};
View SketchSystems.spec
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 / frame.xaml
Created Jul 4, 2019
Bottom Sheet Step-1
View frame.xaml
<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>
View SketchSystems.spec
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 / SketchSystems.spec
Last active Jun 14, 2019
Build Break Actions
View SketchSystems.spec
Build Break Actions
Build Break
Rerun Build -> View Logs
Ping Possbile PR Owners -> Owner Notified
View Logs
Read Logs -> View Logs
Log Actions -> Resolve
View SketchSystems.spec
Build Break Actions
Build Break
Rerun Build -> View Logs
Ping Possbile PR Owners -> Owner Notified
View Logs
Read Logs -> View Logs
Log Actions -> Resolve
View SketchSystems.spec
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
You can’t perform that action at this time.