Skip to content

Instantly share code, notes, and snippets.

View makerj's full-sized avatar
💗

Junhee Lee makerj

💗
View GitHub Profile
@makerj
makerj / .htaccess
Created January 28, 2016 18:39 — forked from fabiocicerchia/.htaccess
Apache - PUT - 405 Method Not Allowed
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.+$ - [NC,L]
RewriteCond %{REQUEST_METHOD} (PUT|DELETE)
RewriteRule .* put.php
@stanislaw
stanislaw / utf8.c
Created November 19, 2015 23:09
Some C functions to work with UTF-8 string : you can check if a string is valid UTF-8, get the length of a UTF-8 string and replace things in a UTF-8 string. All `char *` arguments must be regular, null-byte terminated, C strings. I've tried to optimize the best I could. I'd be grateful for any suggestions or improvements. Please note I have onl…
//
// utf8.c
// training
//
// Created by Conrad Kleinespel on 5/27/13.
// Copyright (c) 2013 Conrad Kleinespel. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
@siritori
siritori / aatree.c
Created May 21, 2012 03:40
AA tree by C
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
#include "aatree.h"
static aanode* new_aanode(const int key, void *val, aanode *nullnode) {
aanode *n = (aanode*)malloc(sizeof(aanode));
if(n == NULL) return NULL;
n->key = key;