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:
#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); |
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) |
#!/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 |
I hereby claim:
To claim this, I am signing this object:
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 |
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): |
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 my_function(parameters=[]): | |
parameters.append(100) | |
return parameters | |
print(my_function()) | |
print(my_function()) | |
print(my_function()) | |
print(my_function()) | |
print(my_function()) |
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" |
#!/usr/bin/env bash | |
# complete installation walkthru for DIRAC14 | |
# with GNU and OpenMPI (64bit-integers) | |
# on Ubuntu 14.04 x86_64 | |
# Copyright (c) 2015 Radovan Bast | |
# Licensed under the MIT license - http://opensource.org/licenses/MIT | |
# ADAPT locations: |