Skip to content

Instantly share code, notes, and snippets.

View ltlapy's full-sized avatar
🍱
Make sure you have meals regularly, 3 times a day

Ryu jongheon ltlapy

🍱
Make sure you have meals regularly, 3 times a day
View GitHub Profile
#!/usr/bin/env python3
# import colorsys
from PIL import Image
# * path of image
img_path = 'sample.png'
# * size of output (maximum square: 13x13 (2886bytes) )
col = 13
@ltlapy
ltlapy / mastodon-round.scss
Created November 19, 2022 15:41
마스토돈 용으로 사용하는 커스텀 스타일을 빙자한 scss로 이루어진 일종의 스파게티와 같은 무언가
```SCSS
* {
// --ui-3: #282c37;
--ui-3: pink;
// --ui-4: #393f4f;
--ui-4: cyan;
--accent: #f7b;
--hover: #f35;
--accent-fg: white;
users = [
"@localuser",
"@[email protected]",
];
uid_bulk_lookup = async function (instanceUrl, token, userlist) {
let uidList = [];
let failList = [];
const fediuserregex = new RegExp('@([0-9a-zA-Z_]+)(?:@([0-9a-zA-Z_.]+))?');

Keybase proof

I hereby claim:

  • I am lptprjh on github.
  • I am lapytopy (https://keybase.io/lapytopy) on keybase.
  • I have a public key ASAlqA26WDQnooV7YqZT_wYl3N3nl0_FZVzdQWfPmS4lwwo

To claim this, I am signing this object:

@ltlapy
ltlapy / OLED_Smartie.ino
Last active September 15, 2017 22:30
OLED-Ported version of Arduino LCD Smartie (Powered by u8x8)
// include the library code:
#include <U8x8lib.h>
// initialize the library
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);
// these constants will automatically change by constructor
const int numRows = (int)u8x8.getRows();
const int numCols = (int)u8x8.getCols();