Skip to content

Instantly share code, notes, and snippets.

@sgnl
sgnl / serverCodes.md
Last active June 24, 2023 07:07
status codes

1xx: Information

Code Message Description
100 Continue The server has received the request headers, and the client should proceed to send the request body
101 Switching Protocols The requester has asked the server to switch protocols
103 Checkpoint Used in the resumable requests proposal to resume aborted PUT or POST requests

2xx: Successful

Code Message Description
@jin3110
jin3110 / tmux.sh
Last active January 8, 2024 12:33
How to install tmux in CoreOS toolbox
#!/bin/bash
# Usage
# =====
# ~~~
# /opt/bin/tmux.sh [tmux args...]
# ~~~
#
# How to install tmux in CoreOS toolbox
# =====================================
@waneck
waneck / Repl.hx
Last active September 13, 2020 14:04
Very simple Haxe REPL
/*
Copyright (c) 2014 Cauê Waneck
All rights reserved.
Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the <organization>. The name of the
@theRemix
theRemix / PidginScript.md
Created February 20, 2014 19:39
PidginScript or BrahScript Fun language stuff

#PidginScript ###or BrahScript

variable assignment => dakine example: dakine name stay "Jon"

NULL => sostay
= operator => stay

!= operator => not

@nadako
nadako / SchemaTypeBuilder.hx
Last active October 31, 2020 03:34
JSON-schema type builder prototype.
#if macro
import haxe.macro.Context;
import haxe.macro.Expr;
class SchemaTypeBuilder
{
public static function build(ref:String):haxe.macro.Type
{
var schema = haxe.Json.parse(sys.io.File.getContent(ref));
var type:ComplexType = parseType(schema);
@andyli
andyli / Trash.hx
Created October 18, 2010 18:22
A Trash that you can throw unused objects inside and see if they are GC'ed later.
//http://gist.github.com/632717
#if flash9
import flash.utils.TypedDictionary;
import flash.net.LocalConnection;
#else
#error
#end
using Lambda;