Skip to content

Instantly share code, notes, and snippets.

Karthik Raman karthikraman

Block or report user

Report or block karthikraman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Midnighter / database.dbj
Created Apr 13, 2015
References style for the Oxford journal Database
View database.dbj
%% Driver file to produce database.bst from merlin.mbs
%% Generated with makebst, version 4.1 (2003/09/08)
%% Produced on 2015/04/13 at 19:37
\input docstrip
*** Reference style for the Oxford journal "Database: The Journal of Biological Databases and Curation". ***
mikkelam /
Created May 25, 2014
Finds a hamiltonian path using networkx graph library, with a backtrack solution
import networkx as nx
def hamilton(G):
F = [(G,[G.nodes()[0]])]
n = G.number_of_nodes()
while F:
graph,path = F.pop()
confs = []
for node in graph.neighbors(path[-1]):
conf_p = path[:]
View .fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
Documented at
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
P4 / default.reg
Last active Dec 12, 2019
Color schemes for Windows Command Prompt
View default.reg
Windows Registry Editor Version 5.00
; Default color scheme
; for Windows command prompt.
; Values stored as 00-BB-GG-RR
gotgenes /
Created May 22, 2012
Edge swap graph.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (c) 2011-2012 Christopher D. Lasher
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
pklaus /
Last active Nov 2, 2019
A Script to Clear Cached RAM on Linux
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <>
if [ "$(whoami)" != "root" ]
echo "You have to run this script as Superuser!"
exit 1
You can’t perform that action at this time.