Skip to content

Instantly share code, notes, and snippets.

@YclepticStudios
YclepticStudios / CanvasMesh.cs
Created January 26, 2017 00:25
Unity script for rendering a mesh inside the canvas UI.
/**
* ============================================================================
* MIT License
*
* Copyright (c) 2017 Eric Phillips
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active July 16, 2025 01:44
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent

Scaling

The general idea is (for example): You'll have sprite.png [email protected], [email protected], [email protected], ...

  • If you are missing @1080p, sprite.png will be scaled 1.5.
  • If you're missing @1440p, sprite.png.

And so on. In code, always use sprite.png paths withouth the @, and GTK will figure out the right png to use.

@amirrajan
amirrajan / main.rb
Last active January 3, 2021 21:25
Matching game made in DragonRuby Game Toolkit
STARTX = 20.0
STARTY = 20.0
ENDY = 40.0
ENDX = 40.0
SPINPOINT = 5
SPINDURATION = 100
POINTSIZE = 8
BOXDEPTH = 40
YAW = 1
DISTANCE = 60
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpectrumController : MonoBehaviour
{
public float scale = 100;
public float baseHeight = 1;
public int visible = 128;
public float observe = 2;