This simple script creates a new element in context menu that opens current directory (background click) or a list of directory (selected elements) as project folder. It does not open single files (that should be done as MIME type, search on google!)
There are complete Computer Algebra System (CAS) systems on the marketm with complete solutions for analysis of analytical models. But exporting a model, for optimization or any other research activity, requires a lot of work, even with a good software.
This work presents a Ruby library that exposes minimalistic CAS capabilities - i.e. simplifications, substitutions, evaluations, etc. Library aims at rapid prototyping of numerical interfaces and code generation for different target languages, separating mathematical expression from exportation rules - e.g. models from numerical conditioning best practices.
The library is implemented in pure Ruby language and compatible with all Ruby interpreter flavours.
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 |
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
/* 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
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
# $Id$ | |
# Maintainer: Matteo Ragni <[email protected]> | |
# Contributor: Matteo Ragni <[email protected]> | |
# Based on the original package by: | |
# Ruben Van Boxem <[email protected]> | |
# Allan McRae <[email protected]> | |
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
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
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
## 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 |