Skip to content

Instantly share code, notes, and snippets.

View IJEMIN's full-sized avatar

I_Jemin IJEMIN

View GitHub Profile
@IJEMIN
IJEMIN / DownloadReports.py
Created January 1, 2019 11:37
Download Google Play Console Sales Report from google cloud storage
from google.cloud import storage
import os
certificationJsonFile = 'XXXXX.json'
bucketName = r'pubsite_prod_rev_XXXXXX'
reportYear = 2018
# Connecte with Service Account
storage_client = storage.Client.from_service_account_json(certificationJsonFile)
@IJEMIN
IJEMIN / auto_car.ino
Created December 27, 2018 07:11
Arduino Car code for friend homework :P
#include <SoftwareSerial.h>
#include <AFMotor.h>
AF_DCMotor motor_L(4); // 모터드라이버 L293D 3: M3에 연결, 4: M4에 연결
AF_DCMotor motor_R(3);
// ????
int i;
int j;
//초음파센서 출력핀(trig)과 입력핀(echo), 변수, 함수 선언//
@IJEMIN
IJEMIN / .gitignore
Last active February 10, 2025 18:44
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/
@IJEMIN
IJEMIN / SpriteMerger.cs
Created September 22, 2018 11:26
Sprite Merger in Unity
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
// Merge multiple Sprites as one sprite
public static class SpriteMerger {
public static Sprite MergeSprite(Sprite[] sprites) {
// 스프라이트 중 가장 큰 크기의 것으로 지정되야함
@IJEMIN
IJEMIN / NavMeshUtil.cs
Created August 20, 2018 14:08
Get Random Position on NavMesh in Unity
using UnityEngine.AI;
using UnityEngine;
public static class NavMeshUtil {
// Get Random Point on a Navmesh surface
public static Vector3 GetRandomPoint(Vector3 center, float maxDistance) {
// Get Random Point inside Sphere which position is center, radius is maxDistance
Vector3 randomPos = Random.insideUnitSphere * maxDistance + center;
@IJEMIN
IJEMIN / inviteAll.js
Created February 25, 2018 12:04
슬랙 특정 채널에 모든 사람들을 추가
var foundAny=false;
function selectAllByLetter(remainingLetters) {
console.log(remainingLetters)
var letter = remainingLetters.pop();
$("#channel_invite_filter").val(letter).trigger("input");
setTimeout(function() {
$(".channel_invite_member:not(hidden)").each(function(i, obj) {
foundAny=true;
this.click();
});
@IJEMIN
IJEMIN / TermalRed.shader
Created January 20, 2018 18:58
Thermal Effect on Unity Shader
Shader "Custom/TermalRed" {
Properties {
_NormalTex("Normal Texture",2D) = "white" {}
_DistanceFadeOut("DistanceFadeOut",Range(0,3)) = 0
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
@IJEMIN
IJEMIN / ImageLoader.cs
Created January 20, 2018 12:32
Load sprite from local file path, and load sprite in UI Image.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.IO;
// 로컬 이미지 파일 경로를 주면 해당 경로에서 이미지를 로드해 UI Image로 띄어주는 코드
public class ImageLoader : MonoBehaviour {
// 스프라이트를 로드할 이미지 컴포넌트
@IJEMIN
IJEMIN / RayByAngle.cs
Created January 20, 2018 12:07
How to Raycast by Angle in Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RayByAngle : MonoBehaviour {
public float angle;
public float distance = 1f;
// Update is called once per frame
//Add Symbol "USING_GOOGLE_MOBILE_ADS" to Build Setting after import GoogleMobileAds library from here https://github.com/googleads/googleads-mobile-unity
#if USING_GOOGLE_MOBILE_ADS
using UnityEngine;
//using System.Collections;
using GoogleMobileAds.Api;
public class AdmobBannerLoader : MonoBehaviour {
public string adUnitId;