Skip to content

Instantly share code, notes, and snippets.

View pujansrt's full-sized avatar

Pujan Srivastava pujansrt

View GitHub Profile
@pujansrt
pujansrt / top-brew-packages.txt
Last active July 2, 2022 19:23 — forked from pmkay/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
youtube-dl: Download YouTube videos from the command-line
readline: Library for command-line editing
@pujansrt
pujansrt / sreda.test.js
Created December 4, 2020 14:25 — forked from igorkosta/sreda.test.js
Mock promisified AWS service operation calls
/* eslint-env jest */
'use strict'
const { read, keys } = require('../sreda')
const AWS = require('aws-sdk')
let ssm = new AWS.SSM()
var ssmPromise = {
promise: jest.fn().mockImplementation((request) => {
return new Promise((resolve, reject) => {
@pujansrt
pujansrt / index.html
Last active March 24, 2019 06:27 — forked from anonymous/index.html
Pagination (HTML, JS)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#pagination {
display: inline-block;
vertical-align: middle;
@pujansrt
pujansrt / flagButton.html
Last active October 3, 2017 02:31 — forked from anonymous/index.html
Flag
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="_so/js?" id="so"></script>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.ace_breakpoint { /* our rectangle */
width:50px;
height:16px;
@pujansrt
pujansrt / dispatcher.component.ts
Last active December 28, 2016 07:58 — forked from sasxa/emitter.service.ts
Angular2 Communicating between sibling components
import {Component, Input, OnChanges} from "@angular/core";
import {EmitterService} from "../services/emitter.service";
@Component({ selector: 'dispatcher', template: '' })
export class DispatcherComponent implements OnChanges {
@Input() id: string;
value = "dispatcher component value";
ngOnChanges() {
@pujansrt
pujansrt / README.md
Last active December 28, 2021 10:45
A Generator for generating a Finite State Machine in Python

Finite State Machine Generator

Tested using: Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin

Mac OS X 10.6.2

Creation