Skip to content

Instantly share code, notes, and snippets.

@romsalva
romsalva / custom-layouts.json
Last active November 7, 2023 21:35
FancyZones Omnigrid custom layouts
{
"custom-layouts": [
{
"uuid": "{2E1FA4F0-E0E4-4C19-A61D-5DCEFFB95B3C}",
"name": "Omnigrid Landscape",
"type": "canvas",
"info": {
"ref-width": 2560,
"ref-height": 1392,
"zones": [
@romsalva
romsalva / extensions
Created March 22, 2018 02:55
Nice Kotlin extensions
inline fun <reified T> Retrofit.create(): T = create(T::class.java)
@romsalva
romsalva / 81-C# Script-NewBehaviourScript.cs.txt
Created March 8, 2018 02:34
Unity Better Script Templates
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class #SCRIPTNAME# : MonoBehaviour {
private void Start() {
}
private void Update() {
@romsalva
romsalva / AndroidInfo.md
Last active January 18, 2017 23:34
Important Android related links and info to review

Info

Links

General Android Studio

APIs / Libraries

@romsalva
romsalva / colors_material.xml
Last active June 8, 2017 04:11
Material colors for easy access
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="material_black_87">#DE000000</color>
<color name="material_black_54">#8A000000</color>
<color name="material_black_38">#61000000</color>
<color name="material_black_12">#1F000000</color>
<color name="material_white_100">#FFFFFFFF</color>
<color name="material_white_70">#B2FFFFFF</color>
@romsalva
romsalva / Opacity values HEX (material)
Created September 3, 2016 21:13
Hexadecimal standard opacity values for material design
Hexadecimal standard opacity values for material design
Opacity - HEX
---------------
87% DE
54% 8A
38% 61
12% 1F
100% FF
@romsalva
romsalva / GLFWmake
Last active August 29, 2015 14:13
GLFW MinGW makefile
LIBNAME=libglfw3.a
SRCDIR=./src/
TESTSDIR=./tests/
EXAMPLESDIR=./examples/
DEPSDIR=./deps/
OBJDIR=./obj/
BUILDDIR=./build/
autoload promptinit compinit colors
promptinit
compinit
colors
#prompt walters
PBRACKETS="$fg[blue]"
PINFO="$fg[yellow]"
PRINFO="$fg[red]"
@romsalva
romsalva / niceColors.txt
Created November 5, 2013 19:01
Named colors in rgb-hex, rgb-0-255, and rgb-0.0f-1.0f formats.
Black #000000 0-0-0 0.0f, 0.0f, 0.0f
White #FFFFFF 255-255-255 1.0f, 1.0f, 1.0f
10% Gray #EBEBEB 235-235-235 0.92f, 0.92f, 0.92f
15% Gray #E1E1E1 225-225-225 0.88f, 0.88f, 0.88f
20% Gray #D7D7D7 215-215-215 0.84f, 0.84f, 0.84f
25% Gray #D7D7D7 204-204-204 0.8f, 0.8f, 0.8f
30% Gray #C2C2C2 194-194-194 0.76f, 0.76f, 0.76f
35% Gray #B7B7B7 183-183-183 0.71f, 0.71f, 0.71f
40% Gray #ACACAC 172-172-172 0.67f, 0.67f, 0.67f
45% Gray #A0A0A0 161-161-161 0.63f, 0.63f, 0.63f