Skip to content

Instantly share code, notes, and snippets.

View Leuconoe's full-sized avatar
🎯
Focusing

Leuconoe Leuconoe

🎯
Focusing
View GitHub Profile
@asus4
asus4 / DownloadManager.cs
Created April 25, 2012 14:32
Unity DownloadManager
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/**
DownloadManager
@author koki ibukuro
*/
public class DownloadManager : MonoBehaviour , System.IDisposable {
// using classes
@milancermak
milancermak / gist:3451509
Created August 24, 2012 14:47
Example of validating a recurring payment from Google Play using the Web server application OAuth 2.0 flow
import datetime
import httplib2
# to see in detail what's going on, uncomment
# httplib2.debuglevel = 4
from apiclient.discovery import build
from oauth2client.client import OAuth2Credentials, OAuth2WebServerFlow
if __name__ == "__main__":
@addyosmani
addyosmani / limitLoop.js
Last active April 25, 2024 19:10
Limit the frame-rate being targeted with requestAnimationFrame
/*
limitLoop.js - limit the frame-rate when using requestAnimation frame
Released under an MIT license.
When to use it?
----------------
A consistent frame-rate can be better than a janky experience only
occasionally hitting 60fps. Use this trick to target a specific frame-
rate (e.g 30fps, 48fps) until browsers better tackle this problem
@keijiro
keijiro / ToggleTest.shader
Last active March 24, 2023 00:43
Shows how to use the Toggle material property drawer in a shader. See the reference manual for further details: http://docs.unity3d.com/ScriptReference/MaterialPropertyDrawer.html
Shader "ToggleTest"
{
Properties
{
[Toggle(FILL_WITH_RED)]
_FillWithRed ("Fill With Red", Float) = 0
}
SubShader
{
Pass
@Sinhyub
Sinhyub / AssetBundleMgr.cs
Created June 5, 2016 09:31
download and load asset from AssetBundle with Synchronous Method (Blocking call)
//
// AssetBUndleMgr.cs
//
// Created by Sinhyub Kim 2016.06.05
//
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
@jchandra74
jchandra74 / PowerShell Customization.md
Last active June 3, 2024 21:32
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@dvddarias
dvddarias / SingletonScriptableObject.cs
Last active December 20, 2021 14:29
Better Unity Singleton Class
/************************************************************
* Better Singleton by David Darias
* Use as you like - credit where due would be appreciated :D
* Licence: WTFPL V2, Dec 2014
* Tested on Unity v5.6.0 (should work on earlier versions)
* 03/02/2017 - v1.1
* **********************************************************/
using System;
using UnityEngine;
@smkplus
smkplus / UnityShaderCheatSheet.md
Last active May 7, 2024 07:34
Controlling fixed function states from materials/scripts in Unity

16999105_467532653370479_4085466863356780898_n

Shader "MaterialPropertyDrawer"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
 
[HideInInspector] _MainTex2("Hide Texture", 2D) = "white" {}
@taking
taking / Brewfile
Last active February 6, 2021 15:25
2018-10-14 Updated
# Taps
tap "homebrew/core"
tap "homebrew/cask"
tap "homebrew/bundle"
# Application Path
cask_args appdir: "/Applications"
# Binaries/Libraries
brew "coreutils" # Install GNU Core Utilities
@mcchae
mcchae / figlet.out
Created January 7, 2019 05:06
pyfiglet ascii art for python usage example
Font=1943____
### ## #### #### ### # # ## ## ### # # ### # # ####
## ## #### #### ### # # ## ## ### # # ### # # ####
## ## #### #### ### # # ## ## ### # # ### # # ####
## ### ## #### # # ### # # ## # ## ### # # ### # # # # ## # ## ##
## ## ## ## # ### # ### ### # # # ### # ### # # ### # # # ### ## ## ## ## ##
## ## ### #### ### #### ### #### ### # # ## ## ### # # ### # # ### #### ## ### ##### ##
### ## ## ## ### #### ### #### ### # # ## ## ### # # ### # # ### #### # ## # ### ##
## ## # # ### # # ### ### # # ### # # ### # # # # ### ## ## # ## ##
#### #### #### ### # # ### # # ### # #