Skip to content

Instantly share code, notes, and snippets.

View snbk97's full-sized avatar
👽

Sayan Bhowmik snbk97

👽
View GitHub Profile
@snbk97
snbk97 / serial.txt
Created February 16, 2022 16:01 — forked from rufoa/patch.sh
sublime merge 2 build 2068 linux
----- BEGIN LICENSE -----
TEAM RUFIO
Unlimited User License
E52D-666666
487EE6F0309908F702DDD52AFCD99A6A
6EE14CF8A2D42271B4FC0991BBF93ADC
FAA9075C436B3796669194A2F36CAAEF
B251155329EC2E434FD28B4A21BE68CC
955D306EE9ED843C5E98B1577D02DEAA
1F4E872AE6495CD5E3B1DA55D5ACD2B2
@snbk97
snbk97 / RTLutils.tsx
Created December 18, 2021 06:01
React Testing Library render with React-Intl
import { ReactElement } from 'react';
import { render } from "@testing-library/react";
import { IntlProvider } from 'react-intl';
import EN from '../../locales/en-US'
import SW from '../../locales/sw-SW'
type ILang = 'en' | 'sw';
const langOptions = {
en: {
@snbk97
snbk97 / enzymeUtils.tsx
Created December 18, 2021 06:00
Enzyme with React-Intl
import React from 'react'
import { mount, shallow } from 'enzyme';
import { IntlProvider, intlShape } from 'react-intl';
import EN from '../../locales/en-US'
import SW from '../../locales/sw-SW'
type ILang = 'en' | 'sw';
const langOptions = {
en: {

Keybase proof

I hereby claim:

  • I am snbk97 on github.
  • I am snbk97 (https://keybase.io/snbk97) on keybase.
  • I have a public key ASBWmUQs52JGbitgvGhwnxcm7t-9kANrNJ7_-5vbo9rmWgo

To claim this, I am signing this object:

javascript: (function() {
if (!(/(?:(irclogs|txt))$/g.test(window.location.href))) {
alert('Only works on DGPLUG irclogs pages');
}
else if (!document.getElementById("hw-true")) {
var sp = document.body.innerHTML.split('\n');
var ops = ['kushal', 'mbuf', 'bhavin192', 'chandankumar','sayan',
'jasonbraganza', 'maxking', 'praveenkumar', 'rtnpro',
'saptaks', 'schubisu', 'trishnag'];
var words = ['http', 'homework', 'home work', 'task'];
@snbk97
snbk97 / Procrastination Daemons.txt
Last active May 30, 2018 17:24 — forked from muhammad-ahsan/Procrastination Daemons
How To Stop Procrastinating | Cure Procrastination Forever | Dan Lok
LINK: https://youtu.be/tilA5Y-MUB4
The Perfectionist (I should do it perfectly)
The Lazy Bastard (Weather is not good today)
The Comparer (Others are better so better not try)
The Futurist (What will happen in future)
The Idiot (I don't know)
The Dumb Listener (My friend advised to take medicine instead of exercise)
The Hooper (Switcher)
The Shit Maker (Everything is dirty)
{
"langs": [{
"code": "ab",
"name": "Abkhaz",
"nativeName": "аҧсуа"
},
{
"code": "aa",
"name": "Afar",
"nativeName": "Afaraf"
@snbk97
snbk97 / employee.c
Last active July 20, 2017 14:42
struct program in C
#include <stdio.h>
#include <string.h>
//author: snbk97
struct emp
{
int emp_code;
char emp_name[100];
char emp_date_of_birth[10];
char emp_date_of_joining[10];
char emp_designation[100];
@snbk97
snbk97 / adapter.py
Created June 19, 2017 17:56 — forked from pazdera/adapter.py
Example of `adapter' design pattern in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Example of `adapter' design pattern
# Copyright (C) 2011 Radek Pazdera
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@snbk97
snbk97 / adapter.cpp
Created June 19, 2017 17:56 — forked from pazdera/adapter.cpp
Example of `adapter' design pattern in C++
/*
* Example of `adapter' design pattern
* Copyright (C) 2011 Radek Pazdera
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,