Skip to content

Instantly share code, notes, and snippets.

View adrianmg's full-sized avatar
🐙
Enjoying life

Adrian Mato adrianmg

🐙
Enjoying life
View GitHub Profile
@passivestar
passivestar / Editor.tres
Last active January 12, 2025 21:14
Godot editor theme
[gd_resource type="Theme" load_steps=12 format=3 uid="uid://7bvxnk5n5imx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6h42l"]
content_margin_left = 10.5
content_margin_top = 8.75
content_margin_right = 10.5
content_margin_bottom = 8.75
bg_color = Color(0.117647, 0.117647, 0.117647, 1)
draw_center = false
border_color = Color(1, 1, 1, 0.137255)
/**
* Custom breakpoints
*
*/
@custom-media --desktop-XL screen and (max-width: 1920px);
@custom-media --desktop-L screen and (max-width: 1440px);
@custom-media --desktop-M screen and (max-width: 1280px);
@custom-media --desktop-S screen and (max-width: 1080px);
@custom-media --desktop-XS screen and (max-width: 900px);
@adrianmg
adrianmg / Preferences.sublime-settings
Last active September 6, 2017 23:29
Sublime preferences
{
"theme": "Material-Theme-Darker.sublime-theme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"overlay_scroll_bars": "enabled",
"line_padding_top": 3,
"line_padding_bottom": 3,
"always_show_minimap_viewport": true,
"indent_guide_options": [ "draw_normal", "draw_active" ],
"material_theme_small_statusbar" : true ,
@bomberstudios
bomberstudios / README.md
Last active February 16, 2022 03:13
Loading a Cocoa Framework in a Sketch Plugin

This is what Craft does:

function loadFramework(pluginRoot) {
  if (NSClassFromString('PanelsManager') == null) {
    var mocha = [Mocha sharedRuntime];
    return [mocha loadFrameworkWithName:'Panels' inDirectory:pluginRoot];
  } else {
    return true;
 }
@adrianmg
adrianmg / Game Development index.md
Last active April 12, 2016 21:50
Game Development Index of tools and other resources
@mjackson
mjackson / color-conversion-algorithms.js
Last active October 10, 2025 15:08
RGB, HSV, and HSL color conversion algorithms in JavaScript
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation
@pixelrevision
pixelrevision / PixelPerfectCam.cs
Last active January 23, 2025 16:41
Script for unity to create a pixel locked orthogonal camera
using UnityEngine;
/**
* A camera to help with Orthagonal mode when you need it to lock to pixels. Desiged to be used on android and retina devices.
*/
public class PixelPerfectCam : MonoBehaviour {
/**
* The target size of the view port.
*/
public Vector2 targetViewportSizeInPixels = new Vector2(480.0f, 320.0f);
/**