Skip to content

Instantly share code, notes, and snippets.

View laminko's full-sized avatar
...

La Min Ko laminko

...
View GitHub Profile
@laminko
laminko / base.py
Last active April 8, 2022 10:57
Printable representation of an object
from inspect import signature
class BaseClass:
def __repr__(self) -> str:
fields = signature(self.__init__).parameters
values = ', '.join(repr(getattr(self, f)) for f in fields)
return f'{type(self).__name__}({values})'
@laminko
laminko / fix_compilation_errors_encountered_with_kernel_4.6.patch
Created August 12, 2019 13:50 — forked from Edenhofer/fix_compilation_errors_encountered_with_kernel_4.6.patch
mt7610u_sta-dkms-git: Fix compilation errors encountered with kernel 4.6
From 9738b5ebd677ec5fff3be4ba83e76488b66f076b Mon Sep 17 00:00:00 2001
From: Gordian Edenhofer <[email protected]>
Date: Tue, 26 Jul 2016 15:05:18 +0200
Subject: [PATCH] Fix compilation errors encountered with kernel 4.6
Inspired by Rene Ploetz's <[email protected]> patch for chenhaiq's repository.
Signed-off-by: Gordian Edenhofer <[email protected]>
---
chips/mt76x0.c | 2 +-
@laminko
laminko / .vimrc
Last active November 30, 2016 04:44
" Pathogen
" execute pathogen#infect()
" Simple VIM config
set pastetoggle=<F2>
set clipboard=unnamedplus
set guifont=Dejavu\ Sans\ Mono\ for\ Power\ line\ 10
set background=dark
" colorscheme classic-bright
@laminko
laminko / gist:4bdfac0a3cbda4870b5c9cae08ab47fd
Created April 17, 2016 17:24 — forked from seinlin/gist:f8fa3e10f46aaeede6f3
Upgrade flame and install Myanmar keyboard.
1.
Enable developer menu.
Settings -> Device information -> More Information -> Developer Menu (enabled)
Settings -> Developer -> Debugging via USB (select ADB and DevTools)
(Note: adb can't access the device while it is in locked state.)
2.
Download and update base image (Base image v188.zip) from
https://developer.mozilla.org/en-US/Firefox_OS/Phone_guide/Flame/Updating_your_Flame
@laminko
laminko / gist:50844dcddbc087b8d6c8
Created February 1, 2016 11:08 — forked from awatson1978/gist:a0df5fef953b9da01ce1
Publish an Atom Package
command-shift-P > Package > Package Generator: Generate Syntax Theme > mypackage
cd ~/.atom/packages/mypackage
apm login
apm develop mypackage
cd ~/github/mypackage
sudo chown -R username:wheel .
git commit -a -m 'checking everything in'
apm publish --tag v2.5.0 minor
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 24 18:01:21 2014
@author: lmk
@description: k-means clustering
"""
#import sys
@laminko
laminko / _.md
Created December 20, 2013 17:10
simple treema
@laminko
laminko / _.md
Created December 20, 2013 16:33
simple treema