This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
love: | |
@echo "not war" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Needleman-Wusnch algorithm as specified on http://en.wikipedia.org/wiki/Needleman_wunsch */ | |
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
using namespace std; | |
string calcSeqAlignment(int S[4][4], int d, string seqA, string seqB); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<algorithm> | |
#include<iostream> | |
#include<string> | |
#include<utility> | |
#include<cmath> | |
using namespace std; | |
string BlockSeqAlignment(string seqA, string seqB); | |
pair<string, string> NeedlemanWunsch(string seqA, string seqB); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns tetris.core | |
(:import (java.awt Color Dimension BorderLayout) | |
(javax.swing JPanel JFrame JOptionPane JButton JLabel) | |
(java.awt.event KeyListener)) | |
(:use clojure.contrib.import-static deflayout.core | |
clojure.contrib.swing-utils) | |
(:gen-class)) | |
(import-static java.awt.event.KeyEvent VK_LEFT VK_RIGHT VK_DOWN VK_UP VK_SPACE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unmap d | |
unmap u | |
map <c-f> scrollPageDown | |
map <c-b> scrollPageUp | |
unmap x | |
unmap X | |
map d removeTab | |
map u restoreTab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Naveen Kumar Molleti | |
# 21st April 2012 | |
# Badly hacked together script to print the number of videos watched by 'Username' | |
# Dunno why but returns 1000000 for an a/c with a large history, must've missed something in the API doc | |
import httplib | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hardstatus alwayslastline "%{=b}%{R} Screen(s): %{b}%w %=%{kG}%C%A %D, %M/%d/%Y " | |
startup_message off | |
defscrollback 10000 | |
autodetach on | |
termcapinfo xterm* ti@:te@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def willis_pi(n): | |
pi = 2.0 | |
for i in xrange(1, n): | |
k = 4 * i * i | |
pi = (pi * k)/(k-1) | |
print pi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.agilogy.spray.cors | |
import spray.http.{HttpMethods, HttpMethod, HttpResponse, AllOrigins} | |
import spray.http.HttpHeaders._ | |
import spray.http.HttpMethods._ | |
import spray.routing._ | |
// see also https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS | |
trait CORSSupport { | |
this: HttpService => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi Gabor, | |
I am the original author of GNU grep. I am also a FreeBSD user, | |
although I live on -stable (and older) and rarely pay attention | |
to -current. | |
However, while searching the -current mailing list for an unrelated | |
reason, I stumbled across some flamage regarding BSD grep vs GNU grep | |
performance. You may have noticed that discussion too... |
OlderNewer