Skip to content

Instantly share code, notes, and snippets.

JamesKhoury / geekkoder.html
Created July 10, 2019 06:06 — forked from charlycoste/geekkoder.html
a Geek code decoder
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Geek Koder</title>
* @description Geek Code Decoder (originally written Extension for Firefox )
* @author Bhasker V Kode
* @date hacked up in the early hours of Feb 23,2007 .

Keybase proof

I hereby claim:

  • I am jameskhoury on github.
  • I am jameskhoury ( on keybase.
  • I have a public key whose fingerprint is 0B25 97AB 2BA4 BC40 2513 A3DE D608 1BC3 03CE 262C

To claim this, I am signing this object:

JamesKhoury / umbraco db cleanup.sql
Created September 20, 2016 06:50 — forked from dampee/umbraco db cleanup.sql
Umbraco Database cleanup. After pulling in an umbraco database from production, you don't need all history or log.
-- dump logs
truncate table umbracolog
-- Umbraco Clear Old Document Versions To Decrease Database Size And Improve Performance
DECLARE @createdDate Datetime = DATEADD(m, -1, getdate())
versionId NOT IN (SELECT versionId FROM cmsDocument WHERE updateDate > @createdDate OR published = 1 OR newest = 1) AND
contentNodeId IN (SELECT DISTINCT nodeID FROM cmsDocument)
JamesKhoury / gist:3c61f0ddaf622b8b3c14
Last active August 29, 2015 14:18 Interview question: fix the index
public class Indexer
private Dictionary<string, List<string>> terms =
new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
private Dictionary<string, List<List<string>>> docIDs =
new Dictionary<string, List<List<string>>>();
public void Index(string docId, string text)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Text.RegularExpressions;
namespace CodeJamPractice