Skip to content

Instantly share code, notes, and snippets.

View drussel's full-sized avatar

Daniel Russel drussel

  • Velo3D
  • Palo Alto, CA
View GitHub Profile
@drussel
drussel / cmake output
Created October 16, 2012 03:59
cmake output when trying to cross compiler from linux to windows
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for CL compiler version
CMakeTestNMakeCLVersion.cersion - 1600
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check for working C compiler: /usr/bin/cl
-- Check for working C compiler: /usr/bin/cl -- broken
CMake Error at /synth1/home/drussel/cmake-2.8.9-Linux-i386/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/cl" is not able to compile a simple test program.
@drussel
drussel / orphans
Last active October 11, 2015 09:48
Large orphans
0.6M kernel/examples/data/nup85-nterm.pdb (d83d34e: 2 years, 5 months ago)
6.4M modules/benchmark/data/rnapii.rmf (2ed4fc7: 1 year, 9 months ago)
0.5M modules/multifit/example/input/1z5s_10.mrc (e8b7a5b: 4 months ago)
1.4M embed/trunk/test/data/1tdx_sampled.mrc (5adbde7: 5 years ago)
3.5M modules/em/test/input/1z5s.mrc (0924c52: 4 years, 1 month ago)
1.0M modules/display/examples/ensemble/aligned-38.pdb (32c7fd7: 2 years, 3 months ago)
1.0M modules/display/examples/ensemble/aligned-18.pdb (32c7fd7: 2 years, 3 months ago)
2.8M biological_systems/rnapii/data/1y1v.J.pdb.ms (122a023: 1 year, 7 months ago)
1.0M modules/display/examples/ensemble/aligned-7.pdb (32c7fd7: 2 years, 3 months ago)
0.8M modules/benchmark/doc/benchmark_results.csv (6dea4a1: 2 years, 2 months ago)
@drussel
drussel / bad_rmf.py
Created September 15, 2012 18:23
Test script for bad rmf
features = list()
def main():
import RMF
rh = RMF.open_rmf_file_read_only("cylB148_2998.rmf")
scoreFactory = RMF.ScoreConstFactory(rh)
frameCount = rh.get_number_of_frames()
getFeatures(rh, scoreFactory)
print len(features), "features"
for frame in range(frameCount):
@drussel
drussel / gist:3308392
Created August 9, 2012 21:55
pygments 1.5 vs older
new:
[(Token.Comment.Multiline, '/**\n * \\file IMP/compatibility/compiler.h\n * \\brief Various compiler workarounds\n *\n * Copyright 2007-2012 IMP Inventors. All rights reserved.\n */'), (Token.Text, '\n'), (Token.Text, '\n'), (Token.Comment.Preproc, '#'), (Token.Comment.Preproc, 'ifndef IMPCOMPATIBILITY_COMPATIBILITY_COMPILER_H'), (Token.Comment.Preproc, '\n'), (Token.Comment.Preproc, '#'), (Token.Comment.Preproc, 'define IMPCOMPATIBILITY_COMPATIBILITY_COMPILER_H'), (Token.Comment.Preproc, '\n'), (Token.Text, '\n')] [(Token.Comment.Preproc, '#'), (Token.Comment.Preproc, 'endif'), (Token.Comment.Preproc, '\n'), (Token.Text, '\n'), (Token.Text, '\n'), (Token.Text, '\n'), (Token.Comment.Preproc, '#'), (Token.Comment.Preproc, 'endif '), (Token.Comment.Multiline, '/* IMPCOMPATIBILITY_COMPATIBILITY_COMPILER_H */'), (Token.Comment.Preproc, '\n')]
old:
[(Token.Comment.Multiline, '/**\n * \\file IMP/compatibility/compiler.h\n * \\brief Various compiler workarounds\n *\n * Copyright 2007-2012 IMP Inventors.
@drussel
drussel / cgal.rb.diff
Created July 17, 2012 04:53
patch for cgal.rb
diff --git a/Library/Formula/cgal.rb b/Library/Formula/cgal.rb
index 4d5b750..268bab7 100644
--- a/Library/Formula/cgal.rb
+++ b/Library/Formula/cgal.rb
@@ -26,6 +26,7 @@ class Cgal < Formula
end
args << '.'
system "cmake", *args
+ system "sed", "-i.old", "s$//#define CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES 1$#define CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES 1$", "include/CGAL/compiler_config.h"
system "make install"
@drussel
drussel / g++ vs clang cgal 4.0.2
Created July 17, 2012 04:49
g++ with invalid config on mac os compiler error
/usr/local/include/CGAL/array.h:81: error: expected nested-name-specifier before ‘...’ token
/usr/local/include/CGAL/array.h:81: error: expected ‘>’ before ‘...’ token
/usr/local/include/CGAL/array.h:83: error: template argument 2 is invalid
/usr/local/include/CGAL/array.h:84: error: expected ‘,’ or ‘...’ before ‘&’ token
/usr/local/include/CGAL/array.h: In function ‘int CGAL::make_array(const T&, int)’:
/usr/local/include/CGAL/array.h:86: error: template argument 2 is invalid
/usr/local/include/CGAL/array.h:86: error: invalid type in declaration before ‘=’ token
/usr/local/include/CGAL/array.h:86: error: ‘args’ was not declared in this scope
/usr/local/include/CGAL/array.h:86: error: expected `}' before ‘...’ token
/usr/local/include/CGAL/array.h:86: error: expected `}' before ‘...’ token
@drussel
drussel / brew config
Created July 17, 2012 04:45
brew --config
HOMEBREW_VERSION: 0.9.2
HEAD: bb18b300409d11eb9ed09a83c7cf1d645531e65f
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.0: N/A
GCC-4.2: build 5666