I hereby claim:
- I am bast on github.
- I am radovan (https://keybase.io/radovan) on keybase.
- I have a public key whose fingerprint is 36CE DAE1 6274 B9FF BACD ABDD 7FC5 E51C FC10 DD3A
To claim this, I am signing this object:
| Copyright (c) 2015 Radovan Bast | |
| Licensed under the MIT license - http://opensource.org/licenses/MIT | |
| Example source code (hello.cpp): | |
| #include <stdio.h> | |
| #include <omp.h> | |
| #include "mpi.h" |
| def my_function(parameters=[]): | |
| parameters.append(100) | |
| return parameters | |
| print(my_function()) | |
| print(my_function()) | |
| print(my_function()) | |
| print(my_function()) | |
| print(my_function()) |
| def concat_words(n, w): | |
| concat = '' | |
| for i in range(n): | |
| concat += w | |
| def concat_words_append(n, w): | |
| s = [] | |
| for i in range(n): | |
| s.append(w) |
| def gauss1(n): | |
| j = 0 | |
| for i in range(1, n+1): | |
| j += i | |
| return j | |
| def gauss2(n): | |
| j = 0 | |
| for i in xrange(1, n+1): |
| sudo pacman -S ruby ruby-rdoc gcc make | |
| gem update --user-install | |
| gem install jekyll --user-install | |
| # finally add $HOME/.gem/ruby/2.7.0/bin to your PATH variable |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| """ | |
| Example for user 'someuser': | |
| $ rocks run host compute 'python /home/user/find-undead.py someuser' | grep -v down | grep -v untrusted | |
| """ | |
| def run_command(command): | |
| import subprocess |
| from subprocess import check_output | |
| # extract output | |
| out = check_output('grep -l foo *', shell=True).decode("utf-8") | |
| # split into a list | |
| l = out.split('\n') | |
| # print the list | |
| print(l) |
| #include "stdio.h" | |
| /* example obtained from Ole Martin Bjoerndalen */ | |
| int main() | |
| { | |
| float a = 16777216; | |
| printf("before increment %f\n", a); | |
| float b = a + 1; | |
| printf("after increment by one %f\n", b); |
| """ | |
| Allows to interactively draw a new polygon based | |
| on an existing polygon. | |
| """ | |
| import sys | |
| import matplotlib.pyplot as plt | |
| in_file = sys.argv[-2] | |
| out_file = sys.argv[-1] |