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
from conans import ConanFile, CMake, tools, RunEnvironment
from pathlib import Path
import MyPackage
class V3D(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
generators = ('visual_studio')
keep_imports = True
short_paths = True
from conans import ConanFile, CMake, tools, RunEnvironment
from pathlib import Path
dependencies = ('zlib/1.2.11@conan/stable',)
class MyPackage(ConanFile):
name = 'MyPackage'
_commit = 'xxxx'
_revision = '2'
@drussel
drussel / gist:d62f3c20b30ade2018d0
Created August 14, 2015 17:58
Json map of id to the record that has the name and the count.
{"54658e4374d650d56749e62d": {"color": "red", "uses": 42, "id": "54658e4374d650d56749e62d", "idBoard": "53e96a1ef876864fd982311b", "name": "priority"}, "54658e4374d650d56749e62e": {"color": "purple", "uses": 16, "name": "projects", "idBoard": "53e96a1ef876864fd982311b", "id": "54658e4374d650d56749e62e"}, "54658e4374d650d56749e62f": {"color": "blue", "uses": 25, "name": "ss/sci", "idBoard": "53e96a1ef876864fd982311b", "id": "54658e4374d650d56749e62f"}, "5489f8d974d650d567d3763c": {"color": "orange", "uses": 1, "name": "\u4e2d\u6587", "idBoard": "53e967c335b87d287ae3c332", "id": "5489f8d974d650d567d3763c"}, "54658e4374d650d56749e62a": {"color": "green", "uses": 13, "id": "54658e4374d650d56749e62a", "idBoard": "53e96a1ef876864fd982311b", "name": "math"}, "54658e4374d650d56749e62b": {"color": "yellow", "uses": 31, "id": "54658e4374d650d56749e62b", "idBoard": "53e96a1ef876864fd982311b", "name": "reading/writing"}, "54658e4374d650d56749e62c": {"color": "orange", "uses": 11, "name": "mind and heart", "idBoard": "53e
@drussel
drussel / gist:8592347
Created January 24, 2014 05:06
VMD crash log
Info) VMD for MACOSXX86, version 1.9.1 (February 1, 2012)
Info) http://www.ks.uiuc.edu/Research/vmd/
Info) Email questions and bug reports to vmd@ks.uiuc.edu
Info) Please include this reference in published work using VMD:
Info) Humphrey, W., Dalke, A. and Schulten, K., `VMD - Visual
Info) Molecular Dynamics', J. Molec. Graphics 1996, 14.1, 33-38.
Info) -------------------------------------------------------------
Info) Multithreading available, 4 CPUs detected.
Warning) Detected a mismatch between CUDA runtime and GPU driver
Warning) Check to make sure that GPU drivers are up to date.
@drussel
drussel / gist:8592239
Created January 24, 2014 04:50
VMD crash with adding frames to molecule
Process: vmd_MACOSXX86 [70764]
Path: /Applications/VMD 1.9.1.app/Contents/MacOS/../Resources/VMD.app/Contents/MacOS/VMD
Identifier: vmd_MACOSXX86
Version: 0.0.1d1
Code Type: X86 (Native)
Parent Process: sh [70762]
Responsible: Terminal [166]
User ID: 501
Date/Time: 2014-01-23 18:16:28.993 -0800
@drussel
drussel / pthread include
Created October 25, 2013 20:09
Patch to add #include
diff --git a/Library/Formula/google-perftools.rb b/Library/Formula/google-perfto
index 6fb1434..928de56 100644
--- a/Library/Formula/google-perftools.rb
+++ b/Library/Formula/google-perftools.rb
@@ -11,6 +11,10 @@ class GooglePerftools < Formula
cause "Segfault during linking"
end
+ def patches
+ DATA
@drussel
drussel / subset filter patch
Created May 7, 2013 03:22
subset filter patch
diff --git a/modules/domino/src/subset_filters.cpp b/modules/domino/src/subset_filters.cpp
index d67b397..220acb9 100644
--- a/modules/domino/src/subset_filters.cpp
+++ b/modules/domino/src/subset_filters.cpp
@@ -81,21 +81,27 @@ MinimumRestraintScoreSubsetFilterTable
std::sort(rs_.begin(), rs_.end());
}
+namespace {
+ RestraintsTemp get_needed(RestraintCache rc, const Subset &s,
@drussel
drussel / RMF.cmake
Created April 14, 2013 04:32
RMF.cmake to download and build RMF
if(IMP_STATIC)
message(STATUS "RMF does not currently support static builds - skipping")
file(WRITE "${PROJECT_BINARY_DIR}/data/build_info/RMF" "ok=False")
else()
message(STATUS "Building internal RMF")
include(ExternalProject)
set(rmf_binary_dir ${PROJECT_BINARY_DIR}/dependency/RMF.build)
@drussel
drussel / rmf_win32_warn.t
Created March 11, 2013 22:17
Windows RMF build warnings
SRCDIR=`pwd` && cd /cygdrive/c/chimera-build/build/src && unzip -o $SRCDIR/rmf-src.zip
Archive: /e/chimera/trunk/foreign/rmf/rmf-src.zip
2146226d38672d838b3d81e4164fa835ed1548b8
creating: salilab-rmf-2146226/
inflating: salilab-rmf-2146226/.gitignore
creating: salilab-rmf-2146226/AvroCpp/
extracting: salilab-rmf-2146226/AvroCpp/AUTHORS
inflating: salilab-rmf-2146226/AvroCpp/CMakeLists.txt
inflating: salilab-rmf-2146226/AvroCpp/COPYING
extracting: salilab-rmf-2146226/AvroCpp/ChangeLog
@drussel
drussel / compilation_error_in_cgal
Created December 26, 2012 20:07
Fails to compile
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <utility>
int main(int, char*[]) {
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef std::pair<K::Point_3, double> Sp;
Sp(K::Point_3(1.0, 1.0, 1.0), 1.0);
return 0;
}