Skip to content

Instantly share code, notes, and snippets.

View flavius's full-sized avatar

Flavius Aspra flavius

View GitHub Profile
alsdkj alsdkasl
lksdfjsldk 1/1
#include <stdlib.h>
#include <stdio.h>
#include "stack.h"
void push(struct node** first, struct node** addAfter, const char val){
struct node* top;
top = malloc(sizeof(struct node*));
top->val = val;
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x400d33]
runtime.panic+0xac /build/src/release-build/src/pkg/runtime/proc.c:1060
runtime.panic(0x468020, 0xf8400103e0)
runtime.panicstring+0xa3 /build/src/release-build/src/pkg/runtime/runtime.c:116
runtime.panicstring(0x4c89c6, 0x20)
runtime.sigpanic+0x144 /build/src/release-build/src/pkg/runtime/linux/thread.c:292
runtime.sigpanic()
@flavius
flavius / zerologger.py
Created July 10, 2011 18:53 — forked from gwik/zerologger.py
Python logger ZeroMQ, Gevent, CouchDB
# encoding: utf-8
"""
A python logging Handler that use ZeroMQ (ØMQ).
+------+ +------+ +-------+
| app1 | | app2 | | app X |
+------+ +------+ +-------+
| PUSH | PUSH | PUSH
/home/flav/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim73,/usr/share/vim/vimfiles/after,/home/lav/.vim/after,/home/flav/.vim/addons/vim-addon-manage
fun SetupVAM()
set runtimepath+=/home/flav/.vim/addons/vim-addon-manager
call vam#ActivateAddons(["github:OriginalCopy"],{'auto_install' : 0})
endf
call SetupVAM()
static function_entry php_meta_functions[] = {
PHP_FE(meta_test, NULL)
PHP_FE(meta_scanner_init, NULL)
PHP_FE(meta_scanner_get, NULL)
PHP_FE(meta_scanner_token_name, NULL)
{NULL, NULL, NULL}
};
assert(
apx->type==SH_RESOLVED ||
apx->type==RD_RESOLVED ||
apx->type==SSCONFLICT ||
apx->type==SRCONFLICT ||
apx->type==RRCONFLICT ||
apy->type==SH_RESOLVED ||
apy->type==RD_RESOLVED ||
apy->type==SSCONFLICT ||
apy->type==SRCONFLICT ||
source ~/.vimrc.local
set guifont=Bitstream\ Vera\ Sans\ Mono\ 8
  • QDeclarativeComponent represents the source code of a .qml file, to create it, you need a QDeclarativeEngine. You can also create a component within a QDeclarativeContext
  • QDeclarativeEngine manages the different QDeclarativeContext and their relationships
  • QDeclarativeContext can have as parent a QDeclarativeEngine or another QDeclarativeContext