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
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
\preamble
----------------------------------------
*** Reference style for the Oxford journal "Database: The Journal of Biological Databases and Curation". ***
@mikkelam
mikkelam / hamilton.py
Created May 25, 2014
Finds a hamiltonian path using networkx graph library, with a backtrack solution
View hamilton.py
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">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@P4
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
[HKEY_CURRENT_USER\Console]
; BLACK DGRAY
"ColorTable00"=dword:00000000
"ColorTable08"=dword:00808080
; BLUE LBLUE
@gotgenes
gotgenes / edgeswap.py
Created May 22, 2012
Edge swap graph.
View edgeswap.py
#!/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
pklaus / clearRAM.sh
Last active Nov 2, 2019
A Script to Clear Cached RAM on Linux
View clearRAM.sh
#!/bin/bash
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/>
if [ "$(whoami)" != "root" ]
then
echo "You have to run this script as Superuser!"
exit 1
fi
You can’t perform that action at this time.