Skip to content

Instantly share code, notes, and snippets.

View apinanyogaratnam's full-sized avatar
🧐

Apinan Yogaratnam apinanyogaratnam

🧐
View GitHub Profile
@YoonkyungKim
YoonkyungKim / I'm a night 🦉
Last active January 17, 2022 00:59
I'm a night 🦉
🌞 Morning 42 commits ███░░░░░░░░░░░░░░░░░░ 14.6%
🌆 Daytime 69 commits █████░░░░░░░░░░░░░░░░ 24.0%
🌃 Evening 138 commits ██████████░░░░░░░░░░░ 47.9%
🌙 Night 39 commits ██▊░░░░░░░░░░░░░░░░░░ 13.5%
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 26, 2024 18:43
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@IanMitchell
IanMitchell / _document.js
Created January 19, 2017 17:41
Custom Script Tags using Next.js
import Document, { Head, Main, NextScript } from 'next/document'
export default class CustomDocument extends Document {
static async getInitialProps (ctx) {
return await Document.getInitialProps(ctx)
}
render () {
return (
<html>
<Head>
@swarooprath
swarooprath / tree.py
Created July 31, 2016 18:45
Python class for tree and binary tree. The __str__ function in Tree pretty prints binary tree, making it human readable
class Tree(object):
def __init__(self, val, children=[]):
self.val = val;
self.children = children;
def __str__(self, level=0, depth=0):
if depth == 0:
depth = self.getDepth()
ret = "\t" * level + repr(self.val) + ("____" * depth) + "\n"
for child in self.children:
@Lazza
Lazza / README.md
Last active June 19, 2024 05:52
VPNGate Python script

This script is NOT MAINTAINED

This snippet of code was posted in 2014 and slightly revised in 2016 and 2017. It was more of a quick'n'dirty script than a polished tool. It is made only for Linux and in Python 2, which has since become outdated.

I currently do not use it, and I suggest you avoid it as well. Please do not expect support for using this script.

🔥 If you need an alternative, @glaucocustodio has kindly suggested EasyVPN in this comment.

The rest of the README is left for historical purposed.