Skip to content

Instantly share code, notes, and snippets.

View adanner's full-sized avatar

Andrew Danner adanner

View GitHub Profile
@adanner
adanner / .block
Created October 27, 2017 16:07
Radial Force
license: gpl-3.0
@adanner
adanner / appinventor.md
Created March 13, 2017 22:54
OSX Install instructions for MIT AppInventor
@adanner
adanner / keybase.md
Last active March 13, 2017 22:51
Keybase ID signing

Keybase proof

I hereby claim:

  • I am adanner on github.
  • I am adanner (https://keybase.io/adanner) on keybase.
  • I have a public key whose fingerprint is 38E9 844A CBA8 C7FF 3B8B E3C5 FB06 D3E7 145E 175A

To claim this, I am signing this object:

@adanner
adanner / FixQtCreator.md
Last active April 22, 2022 16:07
Fix QtCreator not finding CMake

Problem Description

QtCreator complains on opening new CMakeLists.txt project that

No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
 to the compiler, or to the compiler name if it is in the PATH.
@adanner
adanner / cudaDevices.cu
Last active July 15, 2016 01:04
Snippet to find number of GPUs on system and pick one for CUDA use
/* get number of GPUs on local host */
int getGPUCount(){
int ans=0;
if(cudaGetDeviceCount(&ans) != cudaSuccess){
return 0;
}
return ans;
}
/* for multithreaded or mpi tasks, pick a GPU
@adanner
adanner / README.md
Last active February 13, 2016 19:53
sample TPIE filestream test

Creating a simple file I/O app using TPIE

importing tpie/tpie.h and initializing tpie subsystems for

memory and streams are required

set desired memory limit

populate data using write_stream