This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Local Server for site tests | |
%w|webrick optparse|.each do |gem| | |
raise LoadError, "Cannot load gem #{gem}" unless require gem | |
end | |
options = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A simple theme for reveal.js presentations, derived from serif.css | |
* It's in the spirit of the Metropolis theme for beamer https://github.com/matze/mtheme | |
* | |
* This theme is Copyright (C) 2016 Vince Hodges, http://sourdoughlabs.com - it is MIT licensed. | |
*/ | |
@import url(../../lib/font/fira/fira.css); | |
.reveal a { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tictoc | |
tic = Time.now | |
yield | |
toc = Time.now | |
ret = toc - tic | |
puts "Time elapsed #{'%.3f' % ret}" | |
return ret | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Matteo Ragni <info@ragni.me> | |
# Contributor: Matteo Ragni <info@ragni.me> | |
# Based on the original package by: | |
# Ruben Van Boxem <vanboxem.ruben@gmail.com> | |
# Allan McRae <allan@archlinux.org> | |
pkgname=('gcc49-cuda') | |
_pkgver=4.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from timer import Timer | |
with Timer(): | |
print("do something") | |
with Timer(): | |
print("do something else") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classdef TelegramNotifier | |
%TELEGRAMNOTIFIER is an extremely simple class to send a notification | |
% when a long simulation is ended. | |
properties | |
conf_file | |
config | |
end | |
methods | |
function self = TelegramNotifier(path) | |
%TELEGRAMNOTIFIER create a new telegram notifier object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Test for Automatic differentiation in C */ | |
/* MIT License - Ragni Matteo 2016 */ | |
#include <math.h> | |
typedef double number; | |
// Math constants | |
#define AD_PI 3.141592653589793 | |
#define AD_E 2.718281828459045 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19.8 | |
15.4 | |
11.4 | |
19.5 | |
10.1 | |
18.5 | |
14.1 | |
8.8 | |
14.9 | |
7.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
# CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.dot |