Skip to content

Instantly share code, notes, and snippets.

View nbigaouette's full-sized avatar

Nicolas Bigaouette nbigaouette

  • CrowdStrike
  • Montréal, Québec, Canada
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nbigaouette on github.
  • I am nbigaouette (https://keybase.io/nbigaouette) on keybase.
  • I have a public key ASA2SjfYiS3hxvr96B7TJU3oyjUf5OMX0sEFribTho159Ao

To claim this, I am signing this object:

[package]
name = "juice-hello-world"
version = "0.1.0"
authors = ["Nicolas Bigaouette <nbigaouette@gmail.com>"]
[dependencies]
juice = { version = "0.2.3", default-features = false }
# coaster = { version = "0.1.0" }
# coaster-nn = { version = "0.4.1", default-features = false}
# coaster-blas = { version = "0.2.0", default-features = false}
use std::path::Path;
use std::path::PathBuf;
use std::env;
use std::process::Command;
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let target = env::var("TARGET").unwrap();
#!/bin/sh
echo '<RCC>
<qresource prefix="/">'
cwd=$(pwd)
cd qml-material/modules
subdir=$(pwd | sed "s|${cwd}/||g")
find Material/ -name 'qmldir' | sort | sed "s|\(.*\)| <file alias=\"\1\">${subdir}/\1</file>|g"
@nbigaouette
nbigaouette / prody.PKGBUILD
Created March 9, 2015 13:38
PKGBUILD for ProDy
# Maintainer: Tomasz Zok <tomasz.zok@gmail.com>
pkgbase=python-prody
pkgname=('python2-prody' 'python-prody')
pkgver=1.5.1
pkgrel=2
pkgdesc="Protein Dynamics & Sequence Analysis"
arch=(any)
url="http://www.csb.pitt.edu/prody/"
license=('GPLv3')
makedepends=('python>=2.7' 'python3' 'python-setuptools' 'python2-setuptools')
@nbigaouette
nbigaouette / arrows.py
Created October 15, 2012 16:31
Matplotlib arrow (annotate) bug (#1402)
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
fig1 = plt.figure()
ax1 = fig1.add_subplot(221)
ax2 = fig1.add_subplot(222)
ax3 = fig1.add_subplot(223)
@nbigaouette
nbigaouette / ocl.log
Created July 7, 2011 15:48
Output from oclutils.git's platform test
OpenCL: Getting a list of platform(s)... done.
OpenCL: Initializing the 2 available platforms...
OpenCL: Initialize platform "Intel(R) OpenCL"'s device(s)
OpenCL: WARNING: Can't find a usable GPU!
OpenCL: Trying to set an context on Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (id = 0)... Success!
OpenCL: Initialize platform "AMD Accelerated Parallel Processing"'s device(s)
OpenCL: WARNING: Can't find a usable GPU!
OpenCL: Trying to set an context on Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (id = 0)... Success!
OpenCL: Available platforms:
Platform information:
@nbigaouette
nbigaouette / Makefile
Created April 27, 2011 20:46
AMD Stream OpenCL bug?
# while [ 1 ]; do pidof -x opencl_test | xargs ps u -p | tail -1 | awk '{print ""$6" KiB "$6/1024" MiB "$6/1024**2" GiB"}' ; sleep 0 ;done 2> /dev/null
BIN = opencl_test
a: all
all : $(BIN)
$(BIN): main.cpp
g++ -g main.cpp -o opencl_test -lOpenCL
@nbigaouette
nbigaouette / toutv
Created April 3, 2011 21:36
tou.tv
#! /bin/sh
#
# rtmpdump.sh
#
# http://store-it.appspot.com/tou/tou.html
RTMPDUMP=rtmpdump
RTMP="`echo $* | sed 's/<break>.*$//'`"
APP="`echo ${RTMP} | sed 's/^.*\/\(ondemand\/\?\)/\1/'`"
@nbigaouette
nbigaouette / slurm.conf
Created March 23, 2011 02:31
slurm config file
# slurm.conf file generated by configurator.html.
# Put this file on all nodes of your cluster.
# See the slurm.conf man page for more information.
#
ControlMachine=unicron
#ControlAddr=
#BackupController=
#BackupAddr=
#
AuthType=auth/munge