Skip to content

Instantly share code, notes, and snippets.

@MrSoundless
MrSoundless / gambitResetCalculator.html
Last active February 28, 2019 11:18
Gambit reset calculator
<html>
<head>
<style>
input {
width: 80px;
}
</style>
</head>
@MrSoundless
MrSoundless / FpsMeter.cs
Created July 9, 2011 16:46
XNA FPS Meter
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
namespace eindproject
{
public class FPSMeter : DrawableGameComponent
{
public FPSMeter(Game game)
: base (game)
@MrSoundless
MrSoundless / gist:1073729
Created July 9, 2011 16:45
Yii loadModel method v1.02
function loadModel($type, $id, $errorMessage='This page does not exist', $errorNum=404)
{
$model = CActiveRecord::model($type)->findByPk($id);
if ($model === null)
throw new CHttpException($errorNum, $errorMessage);
return $model;
}