Skip to content

Instantly share code, notes, and snippets.

View MartinKnopf's full-sized avatar
🏠
Mucho risky business

Martin Knopf MartinKnopf

🏠
Mucho risky business
View GitHub Profile
Phaser.Particles.Arcade.Emitter.prototype.paused = false;
Phaser.Particles.Arcade.Emitter.prototype.setPaused = function(val){
if(val == this.paused){
}else{
this.paused = val;
var i = this.children.length;
@herrbischoff
herrbischoff / create-icns.sh
Created April 8, 2015 22:32
Create icns Icon File from 1024px PNG Master
# An easy way to create .icns files
# Inspired by http://stackoverflow.com/a/20703594
function mkicns() {
if [[ -z "$@" ]]; then
echo "Input file missing"
else
filename=${1%.*}
mkdir $filename.iconset
sips -z 16 16 $1 --out $filename.iconset/icon_16x16.png
@cjddmut
cjddmut / EasingFunctions.cs
Last active July 16, 2024 08:20
Easing Functions for Unity3D
/*
* Created by C.J. Kimberlin
*
* The MIT License (MIT)
*
* Copyright (c) 2019
*
* 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
@cjddmut
cjddmut / ColorHSV.cs
Last active August 24, 2022 21:02
A HSV Color struct for Unity3D. Allows conversion between UnityEngine.Color and UnityEngine.Color32.
/*
* Created by C.J. Kimberlin (http://cjkimberlin.com)
*
* The MIT License (MIT)
*
* Copyright (c) 2015
*
* 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