Skip to content

Instantly share code, notes, and snippets.

View tecbot's full-sized avatar

Thomas Adam tecbot

  • Fastic, BRNC
  • Dresden, Germany
View GitHub Profile
@tecbot
tecbot / keybase.md
Last active November 18, 2016 19:09

Keybase proof

I hereby claim:

  • I am tecbot on github.
  • I am tagotec (https://keybase.io/tagotec) on keybase.
  • I have a public key ASDEASbv1kGjhi9f5LVjV0lrmDxQ0dFGLQxcIJEgrrzSCgo

To claim this, I am signing this object:

@tecbot
tecbot / c_test.c
Last active August 29, 2015 13:57
failing prefix test
/* Copyright (c) 2011 The LevelDB Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. See the AUTHORS file for names of contributors. */
#include "rocksdb/c.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
package gorocksdb
// #include "rocksdb/c.h"
// #include "gorocksdb.h"
import "C"
import (
"unsafe"
"fmt"
)
@tecbot
tecbot / cgo_interface_pointer
Created February 13, 2014 12:43
cgo failing interface pointer
package main
import (
. "github.com/tecbot/gorocksdb"
"fmt"
"runtime"
)
type TestComparatorHandler struct {
State string
<?php
namespace Facebook;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\Security\Core\Util\String;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\RouterInterface;
use JMS\DiExtraBundle\Annotation as DI;
/*
Implements different bin packer algorithms that use the MAXRECTS data structure.
See http://clb.demon.fi/projects/even-more-rectangle-bin-packing
Author: Jukka Jylänki
- Original
Author: Claus Wahlers
- Ported to ActionScript3
@tecbot
tecbot / mondodb-odm querys
Created April 15, 2011 20:43
mondodb-odm querys
EmbedMany - Querys when updated a Collection
1. Delete Collection
"array(1) {
["delete"]=>
array(1) {
["$unset"]=>
array(1) {
["mRs"]=>
bool(true)
@tecbot
tecbot / gist:801373
Created January 29, 2011 01:11 — forked from jwage/gist:801326
server {
expires 1M;
listen 80;
root /var/www/vhosts/sociallynotable.com/socially-notable/web;
index index.php;
if ($host ~* ^www.(.*)) {
set $remove_www $1;
rewrite ^(.*)$ http://$remove_www$1 permanent;
}
@tecbot
tecbot / primer.js
Created August 7, 2010 08:29 — forked from makinde/primer.js
!function() {
var doc = document,
htm = doc.documentElement,
lct = null, // last click target
nearest = function(elm, tag) {
while (elm && elm.nodeName != tag) {
elm = elm.parentNode;
}
return elm;
};