Skip to content

Instantly share code, notes, and snippets.

View knightcube's full-sized avatar
🏠
Working from home

Rajat Kumar Gupta knightcube

🏠
Working from home
View GitHub Profile
@amimaro
amimaro / UnityHttpRequest.cs
Last active February 5, 2020 08:50
Unity Http Request Example
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class UnityRequest : MonoBehaviour
{
bool display = false;
private GUIStyle guiStyle = new GUIStyle ();
public string uri = "http://localhost:8080";
@lopspower
lopspower / README.md
Last active September 19, 2024 22:32
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@psayre23
psayre23 / gist:c30a821239f4818b0709
Last active September 7, 2024 01:52
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array