Skip to content

Instantly share code, notes, and snippets.

View ashpriom's full-sized avatar
🎯
Focusing

Syed Priom ashpriom

🎯
Focusing
View GitHub Profile
@mejibyte
mejibyte / gist:1233426
Created September 21, 2011 21:50
My implementation of Aho-Corasick's algorithm for string matching.
using namespace std;
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <sstream>
#include <fstream>
#include <cassert>
#include <climits>
#include <cstdlib>
@warenhaus
warenhaus / qtranslate_hooks.php
Last active May 25, 2017 20:21
qtranslate with the new Visual editor in Wordpress 3.9
<?php // encoding: utf-8
/*Copyright 2008Qian Qin(email : mail@qianqin.de)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,