This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 - [email protected] | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"sync" | |
) | |
type worker struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remi Gillig - http://speps.fr - 2012 - Public domain | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class DebugDraw | |
{ | |
static Material material = new Material( | |
@"Shader ""Custom/DebugDraw"" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |