Skip to content

Instantly share code, notes, and snippets.

View dwt53.c
* dwt53.c - Fast discrete biorthogonal CDF 5/3 wavelet forward and inverse transform (lifting implementation)
* This code is provided "as is" and is given for educational purposes.
* 2007 - Gregoire Pau -
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
speps / LeastSquaresL2Norm.jl
Created Mar 24, 2019
Julia: simple example of least squares L2 norm optimization using JuMP
View LeastSquaresL2Norm.jl
# very simple example of L2 norm optimization using JuMP
using Images, TestImages, JuMP, Ipopt
# crop a test image to 50x50 and then flatten it
original = Gray.(testimage("lighthouse"))[250:299, 150:199]
w = size(original, 1)
h = size(original, 2)
t = w * h
y = reshape(float.(original), t)
speps / bcast-server.go
Created Sep 18, 2016
Golang: server streaming data using channels broadcasting (one source, multiple destination)
View bcast-server.go
package main
import (
type worker struct {
speps / DebugDraw.cs
Created Sep 11, 2012
DebugDraw - Unity3D based debug drawing for programmers
View DebugDraw.cs
// Remi Gillig - - 2012 - Public domain
using System;
using System.Collections.Generic;
using UnityEngine;
public class DebugDraw
static Material material = new Material(
@"Shader ""Custom/DebugDraw"" {
speps / SillyThings.cs
Created Aug 2, 2012
FudgeVB - simple C# file and instructions to use VB libraries in Unity3D projects
View SillyThings.cs
// GOAL: To remove dependency on Microsoft.VisualBasic in VB.NET libs... (eg. to use them in Unity3D)
// Place this file in a separate C# project and reference it from the VB project
// In the .vbproj file add
// <NoVBRuntimeReference>true</NoVBRuntimeReference>
// in the first <PropertyGroup> (the one without a condition at the beginning)
// This implies a ton of fixes to apply to replace things like string compare etc.
// Non-exhaustive list of fixes :
// - auto conversions are not done (use .ToString() for example)