Skip to content

Instantly share code, notes, and snippets.

View girisagar46's full-sized avatar
🗼
Focusing

Sagar Giri girisagar46

🗼
Focusing
View GitHub Profile
@girisagar46
girisagar46 / commit_message_example.md
Created March 18, 2019 03:23 — forked from mono0926/commit_message_example.md
[転載] gitにおけるコミットログ/メッセージ例文集100
class Car{
private Wheels wheel;
private Battery battery;
/*Somewhere in our codebase we instatiate the objects required by this class.
There are two methods for implementing DI:
1. Constructor based
2. Setter based
*/
@girisagar46
girisagar46 / README.md
Created September 20, 2018 09:30 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


from typing import Tuple, NamedTuple, List, Optional, Dict
class SpendResult(NamedTuple):
is_successful: bool
remaining_balance: int
class Bank(object):
@girisagar46
girisagar46 / otp.py
Created March 13, 2018 18:08 — forked from rcoh/otp.py
An implementation of Google Authenticator Compatible 2-factor Codes
"""
An implementation of TOTP as described in https://tools.ietf.org/html/rfc6238#section-4 aka Google Authenticator Style 2-factor Auth
"""
import base64
import datetime
import hashlib
import hmac
import sys
import struct
import time
@girisagar46
girisagar46 / docx_mailmerge.py
Created October 11, 2017 09:44 — forked from vdavez/docx_mailmerge.py
A way to mailmerge Word documents using Python
#!/usr/bin/env python
import zipfile
import string
from lxml import etree
def read_docx(filepath):
# todo: Add test to make sure it's a docx
zfile = zipfile.ZipFile(filepath)
# return the xml