Skip to content

Instantly share code, notes, and snippets.

View jinwoo-lee-github's full-sized avatar

jinwoo-lee jinwoo-lee-github

View GitHub Profile
@tatelax
tatelax / example.jenkinsfile
Created October 12, 2021 16:20
A basic Jenkinsfile for Unity projects
pipeline {
agent {
node {
label 'windows'
}
}
environment {
VERSION = readFile(file: "game/Assets/StreamingAssets/version.txt").trim()
}
stages {
@Anubhav1603
Anubhav1603 / examples.md
Last active October 22, 2023 03:02
Code examples of discord.py rewrite

discord.py code examples

Preface

Introduction

I am making this gist to show some examples of stuff you can do with discord.py, and also because the amount of up-to-date examples online is rather limited.

This will not be a guide for learning how to use the basics of the wrapper, but merely showing some code to get a better understanding of some of the things discord.py can do. I will therefore assume that anybody looking at this will understand the basics of both python and the wrapper in question.

I will also assume that asyncio, discord.ext commands and discord are installed and imported, and that the commands.Bot instance is stored in the variable bot.

@devxoul
devxoul / kb_balance.py
Last active August 14, 2022 11:25
국민은행 잔액조회
# -*- coding: utf-8 -*-
from datetime import datetime
import urllib2
def kb_balance(account, password, resident, username):
"""
국민은행 계좌 잔액 빠른조회. 빠른조회 서비스에 등록이 되어있어야 사용 가능.
빠른조회 서비스: https://obank.kbstar.com/quics?page=C018920
@amay077
amay077 / file0.js
Last active September 8, 2017 10:20
Marked.js で Markdown をクライアント側でパースして表示する ref: http://qiita.com/amay077/items/704d48130e5cf17e8654
var formatted = marked(markdown_text)
@anchan828
anchan828 / gist:5317953
Created April 5, 2013 09:29
Editor.CreateEditor の使い方その1
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
public class CloneInspecotr : EditorWindow
{
[MenuItem("Window/CloneInspecotr")]
static void Open ()
{
GetWindow<CloneInspecotr> ();
@anchan828
anchan828 / gist:5283436
Last active December 15, 2015 15:39
OnPreviewGUI
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(HogeScript))]
public class CompactWindow : Editor
{
private Editor model;
public override void OnInspectorGUI ()
{
HogeScript h = (HogeScript)target;
@asus4
asus4 / WWWRequest.cs
Created August 13, 2012 03:56
www request for unity
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Base WWW request component.
/// </summary>
public class WWWRequest : MonoBehaviour {