If you already have Homebrew, just open a terminal and type
$ brew install clozure-cl
# To be placed in /etc/init/ with 644 permissions | |
start on filesystem or runlevel [2345] | |
stop on shutdown | |
description "Jupyter / IPython Notebook Upstart script for Jetson TK-1" | |
script | |
export HOME="/home/ubuntu"; cd $HOME | |
export PATH=/usr/local/cuda-6.5/bin:$PATH | |
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib:$LD_LIBRARY_PATH |
# Docker container that spins up a Jupyter notebook server | |
# with CUDA accelerated Theano support. Assumes the host | |
# system has CUDA drivers installed that match the version below. | |
# | |
# Launch with a comman line similar to the following: | |
# | |
# docker run -it \ | |
# --device /dev/nvidiactl --device /dev/nvidia-uvm --device /dev/nvidia0 | |
# -p 8888:8888 | |
# -v /[where notebooks are on your local machine]:/notebooks |
{ | |
"metadata": { | |
"name": "Ruse Integration" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
If you already have Homebrew, just open a terminal and type
$ brew install clozure-cl
notify <- function(msg="Operation complete") { | |
in.osx <- (Sys.info()['sysname'] == "Darwin") | |
in.rstudio <- (Sys.getenv("RSTUDIO") == "1") | |
in.rgui <- (Sys.getenv("R_GUI_APP_REVISION") != "") | |
if (in.rstudio) { # hack to see if running in RStudio | |
title <- "RStudio" | |
sender <- activate <- "org.rstudio.RStudio" | |
} |
#include <png.h> | |
#include <vector> | |
#include <iostream> | |
#include <stdlib.h> | |
//encode and write PNG to memory (std::vector) with libpng on C++ | |
typedef unsigned char ui8; | |
#define ASSERT_EX(cond, error_message) do { if (!(cond)) { std::cerr << error_message; exit(1);} } while(0) |
% FontAwesome (http://fortawesome.github.com/Font-Awesome/) bindings for (Xe)LaTeX | |
% Author: Honza Ustohal <[email protected]> | |
% | |
% Translation of FontAwesome's private range characters into XeTeX symbols. All icons are camel-cased and prefixed with 'fa', i.e. what was .icon-align-center the CSS version of FontAwesome becomes \faAlignCenter | |
% This might be reworked into a full blown package in the near future | |
% | |
% Prerequisite: | |
% XeLaTeX, FontAwesome installed as a system font accessible by XeLaTeX | |
% | |
% Usage: |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/ocl/ocl.hpp> | |
// cl_mem構造体を参照するためにインクルード | |
#if defined __APPLE__ | |
#include <OpenCL/cl.h> | |
#else | |
#include <CL/cl.h> | |
#endif |
(from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html) | |
First, add this to the project’s .git/info/attributes file: | |
+ | |
*.strings diff=localizablestrings | |
(Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file) | |
Second, add this to your ~/.gitconfig file: |