Basic program for simulating the motion of three point charges.
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
configfile = [[ | |
ip = 127.0.0.1 | |
tcp port = 10 | |
udp port = 11 | |
lan only = false | |
]] | |
config_regex = "%s*(.-)%s*=%s*(.-)%s*\n" | |
function parseString( data ) |
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
import pygame | |
import sys | |
SCREENWIDTH = 800 | |
SCREENHEIGHT = 600 | |
max_iteration = 255 | |
pygame.init() | |
screen = pygame.display.set_mode((SCREENWIDTH,SCREENHEIGHT),pygame.DOUBLEBUF | pygame.HWSURFACE) |
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
//Based off of the python script by Christopher Pound - http://generators.christopherpound.com/ | |
public class LanguageConfluxer | |
{ | |
var inits:Map = new Map(); | |
var pairs:Map = new Map(); | |
public function LanguageConfluxer() | |
{ | |
} |
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
import pygame | |
import sys | |
from math import * | |
import os | |
import threading | |
SCREENWIDTH = 800 | |
SCREENHEIGHT = 600 | |
ASPECT = float(SCREENWIDTH)/float(SCREENHEIGHT) |
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
import os | |
#Configuration | |
DELIM = "\t" | |
HEADERS = True | |
TRANSPOSED = True | |
class Sample: | |
def __init__(self): |
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
var db = require('./../db') | |
function getPaths(startnode, endnode, | |
numpaths, maxdepth, | |
graphs, | |
allowcycles, | |
onresult, onfinish) | |
{ | |
var results = []; | |
var depth = 1; |
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
{% load admin_static %}<!DOCTYPE html> | |
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}> | |
<head> | |
<title>{% block title %}{% endblock %}</title> | |
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" /> | |
{% block extrastyle %}{% endblock %} | |
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static "admin/css/ie.css" %}{% endblock %}" /><![endif]--> | |
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %} | |
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script> | |
{% block extrahead %}{% endblock %} |
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
#This script converts the Agilent prob ids to entrez ids | |
library(gdata) | |
library(RCurl) | |
getentrez <- function(hgnc) | |
{ | |
content = getURLContent( paste0( "http://skimlab.tgen.org:3000/convert?key=", hgnc ) ) #Query conversion server | |
id = strsplit(content, "\t", fixed=TRUE)[[1]][1] #Get first id returned |
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 "Scene.h" | |
#include <fstream> | |
#include <sstream> | |
#include <iostream> | |
#include <vector> | |
#include <thread> | |
Scene::Scene() | |
:currMaterial(NULL),currTexIndex(-1),use_shadow(true),use_transparent_shadow(false),attenuation_coefficient(1.f),camera(NULL),accel_structure(NONE),uniform_grid(NULL) | |
{ |
OlderNewer