Skip to content

Instantly share code, notes, and snippets.

@Nirajkashyap
Nirajkashyap / PostgreSQL-EXTENSIONs.md
Created March 14, 2026 08:52 — forked from joelonsql/PostgreSQL-EXTENSIONs.md
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

@Nirajkashyap
Nirajkashyap / machine.js
Last active April 29, 2022 11:47
Generated by XState Viz: https://xstate.js.org/viz
const routes = {
auth: {
login: "/auth/login",
reset: "/auth/reset-password"
},
apply: {
documents: "/apply/upload-docs",
income: "/apply/income",
name: "/apply/name",
review: "/apply/review",
media queris :
1. font-size ( 100% vh vw )
2. width padding margin ( 1. rem and 2. vh/vw in % )
3. layout ( 4 column for desktop and 2 column for small desktop [css3 flex but can't replace whole thing])
discuss :
rem vs vh/vw
@Nirajkashyap
Nirajkashyap / ngrxintro.md
Created February 15, 2018 19:36 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@Nirajkashyap
Nirajkashyap / Lazy.tsx
Created December 4, 2017 19:27 — forked from donaldpipowitch/Lazy.tsx
Lazy loading a React component with TypeScript 2.2
// this is our imaginary package "react-lazy"
import React, { Component, createElement } from 'react';
import { Redirect } from 'react-router-dom';
import { observer } from 'mobx-react';
import { observable } from 'mobx';
/**
* This is generic module interface. We assume that we can access React components.
*/
export interface FetchedModule {
#!/bin/bash -e
: "${BRANCHES_TO_MERGE_REGEX?}" "${BRANCH_TO_MERGE_INTO?}"
: "${GITHUB_SECRET_TOKEN?}" "${GITHUB_REPO?}"
export GIT_COMMITTER_EMAIL='travis@travis'
export GIT_COMMITTER_NAME='Travis CI'
if ! grep -q "$BRANCHES_TO_MERGE_REGEX" <<< "$TRAVIS_PULL_REQUEST_BRANCH"; then
printf "Current branch %s doesn't match regex %s, exiting\\n" \
{
'projectlist' [
{ 'projectname':'samplename','projecturl':'sample http url','projectdesc':'description ','projectimg':'project img url','skillkeywords':['typescript','javascript'] },
{ 'projectname':'samplename','projecturl':'sample http url','projectdesc':'description ','projectimg':'project img url','skillkeywords':[] },
{ 'projectname':'samplename','projecturl':'sample http url','projectdesc':'description ','projectimg':'project img url','skillkeywords':[] }
]
}
#!/bin/sh
# From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# - https://github.com/saxenap/install-redis-amazon-linux-centos/blob/master/redis-server
#
# redis - this script starts and stops the redis-server daemon
# Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
@Nirajkashyap
Nirajkashyap / install-redis.sh
Created January 28, 2016 20:25 — forked from four43/install-redis.sh
Install Redis
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://gist.githubusercontent.com/four43/e00d01ca084c5972f229/raw/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
// Based on Glacier's example: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Multi-part_Upload
var fs = require('fs');
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./aws-config.json');
var s3 = new AWS.S3();
// File
var fileName = '5.pdf';
var filePath = './' + fileName;
var fileKey = fileName;