Skip to content

Instantly share code, notes, and snippets.

Hamcha / SmoothFollow.cs
Created July 28, 2013 00:45
Stupid Unity scripts : "Smooth Follow" from Standard Assets
// Smooth Follow from Standard Assets
// Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability
// If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead.
using UnityEngine;
using System.Collections;
public class SmoothFollow : MonoBehaviour {
// The target we are following
public Transform target;
Hamcha / Sprite2D.cs
Last active April 26, 2023 16:01
Stupid Unity scripts: 2D Billboards with perspective camera.
using UnityEngine;
using System.Collections;
public class Sprite2D : MonoBehaviour {
public Camera gameCamera;
private float initialRotation;
void Start()
Hamcha / style.css
Created March 12, 2021 15:43
For use in Streamlabs Chat Box
* {
box-sizing: border-box;
html, body {
height: 100%;
overflow: hidden;
white-space: nowrap;
Hamcha / compress.go
Created February 8, 2020 12:37
Compress a folder into a hopefully working character pack for SRB2kart
package main
import (
Hamcha / ftp.zsh
Created October 13, 2012 12:22
ZSH file for easy ftp uploading from terminal (requires NCFTP Client)
ftp-upload() {
if [[ $1 == '' ]]; then
print -P $FG[001]"Please specify one or more files"$FX[reset]
Hamcha /
Last active November 5, 2018 19:28
GIT CONFIGS FOR LAZY PEOPLE (or for those who are just tired to have to look them up every @#$% time)

Using rebase correctly

Always pull with rebasing

git config --global branch.autosetuprebase always

Always merge with fast forward

Hamcha / ppio
Created August 16, 2014 02:31
Quick and dirty alternative for when ix is down or something - Completely backend free (requires ssh/cat and a webserver) - Assumes keyless auth
SERVER_USER=<<your ssh user>>
SERVER_HOST=<<your ssh server address>>
PUBLIC_PATH="<<public url (ie https://myhost/pastes/)>>"
SERVER_PATH="<<server path (ie /var/www/pastes/)>>"
SERVER_FLAGS="<<additional flags (ex. custom ssh port)>>"
Hamcha / devil.go
Last active March 14, 2017 02:47
Devil Traumae nick generator, based on @pedrox's exploit
// Original by pedrox (
package main
import (
Hamcha / gist:d48f3af6c2ea30d294fcdf7c82f4374f
Created November 4, 2016 11:34
(New) Keybase proof for new key
### Keybase proof
I hereby claim:
* I am Hamcha on github.
* I am hamcha ( on keybase.
* I have a public key whose fingerprint is 7263 8B9E E0A4 4907 5546 3C9C A404 13D2 1021 EAEE
To claim this, I am signing this object:
Hamcha /
Last active August 16, 2016 21:15 — forked from anonymous/
var folders = DriveApp.getFoldersByName("Università");
var subfolder = null;
if (folders.hasNext()) {
var folder =;
var subfolders = folder.getFoldersByName("Sbobine");
if (subfolders.hasNext()) {
var folder =;
var subsubfolders = folder.getFoldersByName("5o Anno");
if (subsubfolders.hasNext()) {
var folder =;