Skip to content

Instantly share code, notes, and snippets.

View rumaniel's full-sized avatar
๐Ÿ’€
I'm fine thank you and you?

Ruman Kim rumaniel

๐Ÿ’€
I'm fine thank you and you?
View GitHub Profile
@rgm
rgm / stamp-icon.rb
Last active September 11, 2023 12:40
Add the current version and build number on your iOS app icon
#!/usr/bin/env ruby
# Requires ImageMagick: `brew install imagemagick`
# Requires version.sh from https://gist.github.com/osteslag/1089407
#
# Set RGM_STAMP_VERSION_ON_ICONS=1 in your build settings to enable/disable
# stamping on Debug/Relase configurations.
#
# Make base unstamped versions Icon.base.png, &c. in the source tree. The
# script will make stamped versions Icon.png, &c. It relies on Xcode to copy
@arunoda
arunoda / gist:7790979
Last active March 13, 2025 14:30
Installing SSHPass

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

@subicura
subicura / gist:8329759
Created January 9, 2014 05:21
์œ ๋ช… ์„œ๋น„์Šค๋“ค์˜ API Response ๋ถ„์„

Status code ์ฐธ๊ณ 

http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option

์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” status code

  • 200 - ok
    • request ์„ฑ๊ณต
    • ex) resource ๋ชฉ๋ก/resource ์ƒ์„ธ/resource ์ˆ˜์ •/๊ทธ์™ธ ๋Œ€๋ถ€๋ถ„์˜ API ์„ฑ๊ณต
  • 201 - create
    • request ์„ฑ๊ณต
    • ex) resource ์ƒ์„ฑ ์„ฑ๊ณต
@r2d2rigo
r2d2rigo / ExtractZipFile.cs
Last active August 18, 2021 10:05
Using SharpZipLib to extract zip files from Unity in a coroutine-friendly way
// This sample function uses SharpZipLib (http://icsharpcode.github.io/SharpZipLib/) to extract
// a zip file without blocking Unity's main thread. Remember to call it with StartCoroutine().
// Byte data is passed so a MemoryStream object is created inside the function to prevent it
// from being reclaimed by the garbage collector.
public IEnumerator ExtractZipFile(byte[] zipFileData, string targetDirectory, int bufferSize = 256 * 1024)
{
Directory.CreateDirectory(targetDirectory);
using (MemoryStream fileStream = new MemoryStream())
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 5, 2025 09:28
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@options
options / jugan.net
Created December 10, 2015 05:26
[์ฃผ๊ฐ„๋‹ท๋„ท] ํ˜ผ์ž ์•Œ๊ณ  ์žˆ๊ธฐ์—๋Š” ๋„ˆ๋ฌด๋‚˜ ์•„๊นŒ์šด ๊ธ€, ์†Œ์Šค ์ฝ”๋“œ, ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋ฐœ๊ฒฌํ•˜์…จ๊ฑฐ๋‚˜ ํ˜น์€ ๊ณต์œ ํ•˜๊ณ ์ž ํ•˜๋Š” ์†Œ์‹์ด ์žˆ์œผ์‹œ๋ฉด ์•Œ๋ ค์ฃผ์„ธ์š”
[์ฃผ๊ฐ„๋‹ท๋„ท]
@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <[email protected]>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
@Split82
Split82 / UnityShadersCheatSheet.shader
Created April 17, 2018 10:07
Unity Shaders Cheat Sheet
Shader "Name" {
Properties {
_Name ("display name", Range (min, max)) = number
_Name ("display name", Float) = number
_Name ("display name", Int) = number
_Name ("display name", Color) = (number,number,number,number)
_Name ("display name", Vector) = (number,number,number,number)
@Curookie
Curookie / Unity ์œ ๋‹ˆํ‹ฐ ์‹ค๋ฌด
Last active April 1, 2025 05:06
Unity ์œ ๋‹ˆํ‹ฐ ์‹ค๋ฌด
๊ธ€ ๋กœ๋”ฉ ์ด์Šˆ๋กœ ์•ž์œผ๋กœ ์œ ๋‹ˆํ‹ฐ ์‹ค๋ฌด2์— ์ ๊ฒ ์Šต๋‹ˆ๋‹ค.
์‹ค๋ฌด2 - https://gist.github.com/Curookie/42c979a7de7d656ec8cf6b8c01ea0457
----- ์ ˆ์ฐจ์  ์ฝ˜ํ…์ธ  ์ƒ์„ฑ(Procedural Content Generation, PCG) -----
๋žœ๋ค ์ƒ์„ฑ ์•Œ๊ณ ๋ฆฌ์ฆ˜
1. Cellular Automaton
- 2D Platformer ๋งต ์ƒ์„ฑ์‹œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ. (๋™๊ตด, ๋˜์ „)
2. Dungeon Room ์ƒ์„ฑ ์•Œ๊ณ ๋ฆฌ์ฆ˜ (BSP)
Binary Space Partitioning (BSP ์•Œ๊ณ ๋ฆฌ์ฆ˜)
@LotteMakesStuff
LotteMakesStuff / AutohookAttribute.cs
Last active March 18, 2025 14:51
[Autohook] property drawer for unity - Add this [Autohook] attribute to a property to and the inspector will automagically hook up a valid reference for you if it can find a component attached to the same game object that matches the field you put it on. You can watch a demo of this in action here https://youtu.be/faVt09NGzws <3
// NOTE DONT put in an editor folder!
using UnityEngine;
public class AutohookAttribute : PropertyAttribute
{
}