A Query Data specification that resembles files and directories.
char *result = qd_query(doc,"query"); // Return a single value from your data
array(char*) result = qd_queries(doc,"query"); // Return a result set from your data (array)
// generic A* pathfinding | |
// | |
// INTERFACE | |
// | |
// mandatory macros | |
#ifndef ASTAR_POS_TYPE | |
#error ASTAR_POS_TYPE should specify position type |
dumpbin /exports any.dll > any.def | |
lib /def:any.def /out:any.lib /machine:x64 |
// useful code snippets gathered from the network (via phillip trudeau) | |
static float euclidean_mod(float x, float y) { return x - floorf(x / y) * y; } | |
static bool rect_is_onscreen(RECT rect) { return (MonitorFromRect(&rect, MONITOR_DEFAULTTONULL) != NULL); } | |
static bool window_is_onscreen(HWND hwnd) { return (MonitorFromWindow(hwnd, MONITOR_DEFAULTTONULL) != NULL); } | |
// Win32: Set the window icon for every window in your app (including MessageBox() calls and assertion failures) instead of just your primary window. | |
static LRESULT set_window_icon_callback(int type, WPARAM wparam, LPARAM lparam) { | |
if (type == HCBT_CREATEWND) { | |
HANDLE instance_hdl = GetModuleHandleA(NULL); |
/* This file defines all 2136 Japanese Jōyō kanji (常用漢字) | |
with the unicode codespoints formatted to fit Nuklear's font config. | |
#include it as part of the nk_runes definition as shown below. | |
Don't forget the 0 at the end of the array, as this file doesn't define it. | |
*/ | |
/* Usage example, incased in #if 0 to allow comments inside comments */ | |
#if 0 | |
static |
import numpy as np | |
def sigmoid(x): | |
return 1 / (1 + np.exp(-x)) | |
def neural_network(X, y): | |
learning_rate = 0.1 | |
W1 = np.random.rand(2, 4) | |
W2 = np.random.rand(4, 1) |
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
# A list of available STUN server. | |
stun.l.google.com:19302 | |
stun1.l.google.com:19302 | |
stun2.l.google.com:19302 | |
stun3.l.google.com:19302 | |
stun4.l.google.com:19302 | |
stun01.sipphone.com | |
stun.ekiga.net |
# Ensure GitHub detects files as C rather than Objective-C. | |
*.c linguist-language=C | |
*.h linguist-language=C |
Here's a list of mildly interesting things about the C language that I learned over time.
Unicode table - List of most common Unicode characters * | |
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable. | |
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol. | |
What is Unicode? | |
Unicode is a standard created to define letters of all languages and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode. | |
How to identify the Unicode number for a character? | |
Type or paste a character: |