Skip to content

Instantly share code, notes, and snippets.

View synchrok's full-sized avatar
🙂

Woosung Jeon synchrok

🙂
  • Awesomepiece
  • Seoul, South Korea
View GitHub Profile
@synchrok
synchrok / SpriteShapeFlip.cs
Created September 13, 2022 09:33
[Unity] X-Axis flip to SpriteShapeController spline
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.U2D;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class SpriteShapeFlip {
#if UNITY_EDITOR
using UnityEditor;
[InitializeOnLoad]
public class DisableRecompile {
static bool waitingForStop = false;
static DisableRecompile() {
EditorApplication.update += OnEditorUpdate;
}
public static class Utility {
public static bool Eulrlega(string word) {
var last = word[word.Length - 1];
if (last < 0xAC00)
return true;
last -= (char)0xAC00;
var jong = (char)((last % 28) + 0x11a7);
@synchrok
synchrok / LerpBlurA.java
Last active December 17, 2015 00:28 — forked from mattdesl/LerpBlurA.java
Pixmap's width and height have to same for blur with using this way (LerpBlurA) so I fixed this problem (make pixmap to same width and height).
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Pixmap.Format;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
@synchrok
synchrok / eulrlega.cpp
Created March 9, 2013 19:57
* eulrlera (을를이가) * 단어 뒤에 붙을 말이 을(이/은)인지 를(가/는)인지 알려주는 함수 * @param (wchar_t*) * @return true(을, 이, 은) / false(를, 가, 는)
#include <windows.h>
#include <iostream>
#include <locale>
using namespace std;
boolean eulrlega(wchar_t *word)
{
int len = wcslen(word);
wchar_t completeCode = word[len-1];
@synchrok
synchrok / eulrlega.java
Last active November 5, 2023 11:16
eulrlera (을를이가): 문자열 뒤에 붙을 말이 을(이/은)인지 를(가/는)인지 알려주는 함수
public class Utility {
public static boolean eulrlega(String word) {
char last = word.charAt(word.length()-1);
if(last < 0xAC00)
return true;
last -= 0xAC00;
char jong = (char) ((last % 28) + 0x11a7);