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
<span about="#ethanol" | |
xmlns:chem="http://www.blueobelisk.org/chemistryblogs/"> | |
<span property="chem:smiles">CCO</span> | |
</span> |
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
<?xml version='1.0' encoding="ISO-8859-1"?> | |
<xsl:stylesheet | |
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' | |
version='1.0' | |
> | |
<xsl:param name="layout">ref</xsl:param> | |
<!-- | |
Author: |
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 | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
##import sys | |
##sys.path.append("C:\\Python26\\Lib\\site-packages") | |
##sys.path.append("C:\\Python26\\lib") | |
import Avogadro as avo |
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 org.openscience.jmol.app; | |
import java.awt.Point; | |
import java.util.concurrent.locks.Lock; | |
import java.util.concurrent.locks.ReentrantLock; | |
import javax.swing.JFrame; | |
import javax.vecmath.Vector3f; | |
import org.openscience.jmol.app.jmolpanel.*; |
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.foo; | |
import java.net.SocketException; | |
import java.net.UnknownHostException; | |
import javax.vecmath.Vector3f; | |
import com.illposed.osc.OSCMessage; | |
import com.illposed.osc.OSCPortOut; |
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
/* $RCSfile$ | |
* $Author: hansonr $ | |
* $Date: 2009-07-01 00:58:33 +0100 (Wed, 01 Jul 2009) $ | |
* $Revision: 11158 $ | |
* | |
* Copyright (C) 2000-2005 The Jmol Development Team | |
* | |
* Contact: jmol-developers@lists.sf.net | |
* | |
* This library is free software; you can redistribute it and/or |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
let primes = [2,3,5,7] in let mult (x,y) = x*y in let {f 0 ls = ls ; fn ls = map mult (zip primes (f (n-1) ls)) } in f 3 primes |
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
""" | |
An implementation of binary search, based on the challanges in the following blog posts: | |
http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html | |
http://reprog.wordpress.com/2010/04/19/are-you-one-of-the-10-percent/ | |
http://www.solipsys.co.uk/new/BinarySearchReconsidered.html?tw | |
This was not my first attempt however, there was a broken version (of course) | |
that I wrote prior to running it for the first time. Sadly I didn't take a | |
snapshot before I fixed it but the bug was fairly major; although I'd worked |
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
$ curl -O http://openjena.org/repo-dev/com/hp/hpl/jena/tdb/0.8.10-SNAPSHOT/tdb-0.8.10-20110325.114138-12.zip | |
... | |
$ unzip tdb-0.8.10-20110325.114138-12.zip | |
... | |
$ export TDBROOT=TDB-0.8.10-SNAPSHOT | |
$ PATH=$TDBROOT/bin:$PATH | |
$ curl -O http://downloads.dbpedia.org/3.6/en/external_links_en.nt.bz2 | |
$ curl -O http://downloads.dbpedia.org/3.6/en/article_categories_en.nt.bz2 | |
$ curl -O http://downloads.dbpedia.org/3.6/en/homepages_en.nt.bz2 | |
$ bzcat *.bz2 | tdbloader2 --loc DBpedia /dev/stdin |
OlderNewer