Skip to content

Instantly share code, notes, and snippets.

View i-am-mani's full-sized avatar
🎯
Focusing

Mandeep choutapelly i-am-mani

🎯
Focusing
  • Works at Dreamplan.io
  • India, Mumbai.
View GitHub Profile
@i-am-mani
i-am-mani / keybindings.json
Created August 28, 2023 05:18
My VS Code configurations
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+j",
"command": "terminal.toggleVisibility"
},
{
"key": "cmd+j",
"command": "-workbench.action.togglePanel"
},
@i-am-mani
i-am-mani / ranger-cheatsheet.md
Created August 13, 2023 08:37 — forked from heroheman/ranger-cheatsheet.md
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@i-am-mani
i-am-mani / Caddyfile
Created May 14, 2022 13:42
A deployment script to automate strapi deployment in for test/production. Postgress for DB, PM2 for process manager, Caddy or Nginx for reverse-proxy.
localhost # your server_name
reverse_proxy 127.0.0.1:1337 # assuming your strapi instance in running on 1337
@i-am-mani
i-am-mani / Auth.tsx
Created May 11, 2022 11:28
The gists show are example for AWS cognito Authentication:
import Amplify from "aws-amplify";
// Configure this inside _app.tsx or at the entry point of the application otherwise simply import this in that file.
Amplify.configure({
Auth: {
region: "${}",
userPoolId: "${}",
userPoolWebClientId: "${}",
oauth: {
domain: "${}",
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
package com.ruia;
import java.io.IOException;
import java.util.*;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapred.*;
public class WordCount {
public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
from tkinter import *
from math import *
class Hexagon(object):
def __init__(self, parent, x, y, length, color, tags):
self.parent = parent
self.x = x
self.y = y
self.length = length
@i-am-mani
i-am-mani / README.txt
Created March 4, 2021 18:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@i-am-mani
i-am-mani / nlp-morphological-analysis.ipynb
Created February 25, 2021 17:31
NLP-Morphological-Analysis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* Made by: Mandeep Choutapelly
* Block Chain Practical #3.1.
*/
import java.security.KeyPairGenerator
import javax.crypto.KeyGenerator
import javax.crypto.spec.SecretKeySpec
/**