Skip to content

Instantly share code, notes, and snippets.

@wizzard0
wizzard0 / Main.hx
Created September 2, 2012 12:59
microhttp-hx
package crossplatformtest;
import haxe.Log;
import neko.vm.Thread;
/**
* ...
* @author Wizzard
*/
class Main
@wizzard0
wizzard0 / DumbTable.cs
Created September 29, 2012 21:28
dumb table
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CryptoBoxLib.Data
{
public class DumbTable<T, V> where T : IEquatable<T>
{
public List<KeyValuePair<T, V>>[] Buckets;
@wizzard0
wizzard0 / client.cs
Created October 27, 2012 04:32
Microchat
using System;
using System.Net;
using Newtonsoft.Json;
using System.Security.Cryptography.X509Certificates;
namespace Chat
{
class Program
{
private static bool RemoteCertificateValidate(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors error)
@wizzard0
wizzard0 / GEF.cs
Last active December 11, 2015 13:38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GenericEntityFramework
{
/// <summary>
@wizzard0
wizzard0 / NetworkUtil.cs
Created April 2, 2013 16:47
Multipart form+file upload
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Collections.Specialized;
using System.Diagnostics;
namespace Util
@wizzard0
wizzard0 / IntegerSelftest.cs
Last active December 20, 2015 20:19
In Soviet Russia, portable code writes you!
using System;
using System.Runtime.CompilerServices;
namespace InsaneTests
{
public class IntegerSelftest
{
public static bool ParanoidAssertLongLong(long data, long _int, string should,
string fn = "?", string fun = "?",
int ln = -1)
@wizzard0
wizzard0 / 131001-cen.dot
Last active December 24, 2015 15:49
graph layout example
digraph{
graph [rankdir="RL"];
node [shape="box",margin="0.01,0.01", style="filled",fillcolor="yellow"]
_1 [label=""];
_2 [label=""];
_3 [label=""];
_4 [label=""];
_5 [label=""];
_6 [label=""];
_7 [label=""];
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Toliman.Cryptography
{
/// <summary>
/// comparable, equatable byte[]
| NTVS | TSLS
---------------------------|--------|---------
Show compiler command line | + | -
Specify building options | - | +
Wraps npm | + | -
Generate AMD | - | +
Generate CJS | + | +
Use node_modules | + | -
Clean sollution [1] | + | -
Valid import system [2] | + | -
@wizzard0
wizzard0 / fl.css
Created August 4, 2014 15:57
React floatLabel
.floatlabel {
display: flex;
position: relative;
flex-direction: column;
width: 300px;
margin-top: 20px;
}
.floatlabel > label {
position: absolute;