Skip to content

Instantly share code, notes, and snippets.

View roeniss's full-sized avatar
🌊
파도가 철썩 철썩 철썩

Roeniss Moon roeniss

🌊
파도가 철썩 철썩 철썩
View GitHub Profile
@stevecondylios
stevecondylios / resize-image-in-github-issue-github-flavored-markdown.md
Last active April 27, 2024 19:04
How to Resize an Image in a Github Issue (e.g. Github flavored Markdown)

How to Resize an Image in Github README.md (i.e. Github Flavored Markdown)

Percentage:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width=50% height=50%>

Pixels:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width="150" height="280">

@jiunbae
jiunbae / 띠용 코드 챌린지
Last active December 2, 2021 23:09
제1회 프로그래머스 배 띠용 코드 챌린지 ~ 한 줄로 짤 코드를 누가 436 줄로 만들어놨어요? ~
## Author: Jiun Bae (2019/08/18)
## ## See also (https://github.com/jiunbae/ITE4053/tree/master/NumpyNeuralNetwork)
from typing import Optional, List, Union, Tuple, Iterable, Callable
from functools import reduce
import numpy as np
## Class Definition
# _Module
@tigerhawkvok
tigerhawkvok / poetry-convert.py
Last active May 6, 2024 06:18
Convert a requirements.txt file to a Poetry project
#!python3
"""
Convert a requirements.txt file to a Poetry project.
Just place in the root of your working directory and run!
"""
sourceFile = "./requirements.txt"
import re
import os
@angristan
angristan / single-node-es.md
Last active February 4, 2024 19:55
Elasticsearch settings for single-node cluster (1 shard, 0 replica)

Elasticsearch settings for single-node cluster

1 shard, 0 replica.

For future indices

Update default template:

curl -X PUT http://localhost:9200/_template/default -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"order": -1,"settings": {"number_of_shards": "1","number_of_replicas": "0"}}' 
@loganlinn
loganlinn / uuid_bytearray.kt
Created November 30, 2018 00:27
Kotlin extension function to convert UUID to ByteArray
import java.nio.ByteBuffer
import java.util.UUID
fun UUID.asBytes(): ByteArray {
val b = ByteBuffer.wrap(ByteArray(16))
b.putLong(mostSignificantBits)
b.putLong(leastSignificantBits)
return b.array()
}
@IJEMIN
IJEMIN / .gitignore
Last active September 15, 2023 10:59
Unity + Rider gitignore
# Created by https://www.gitignore.io/api/unity
# Edit at https://www.gitignore.io/?templates=unity
# Jetbrain Rider Cache
.idea/
Assets/Plugins/Editor/JetBrains*
# Visual Studio Code
.vscode/
@Dammmien
Dammmien / mustache.md
Last active April 27, 2023 22:41
Mustache cheatsheet

Basic tag

  Hello {{name}} !!

Comments

 {{! This is a comment, and it won't be rendered }}
@evilpie
evilpie / parser.py
Created January 16, 2012 14:30
Tokenizer, Parser, AST based interpreter
class Token:
ASSIGN = 'assign'
NAME = 'name'
NUMBER = 'number'
PLUS = 'plus'
MINUS = 'minus'
LPARENS = 'lparens'
RPARENS = 'rparens'
DOUBLEDOT = 'doubledot'