Skip to content

Instantly share code, notes, and snippets.

View martinzh's full-sized avatar
💀
...

Martin Zumaya martinzh

💀
...
  • Programa Universitario de Estudios sobre Democracia, Justicia y Sociedad - UNAM
  • Mexico City
  • X @martinzh
View GitHub Profile

Keybase proof

I hereby claim:

  • I am martinzh on github.
  • I am martinzh (https://keybase.io/martinzh) on keybase.
  • I have a public key ASAHx5lU93JObh0ZBf6GBug9C0ypsDjhsOs_TDGlCjZP9go

To claim this, I am signing this object:

@martinzh
martinzh / killthemall.sh
Created November 30, 2017 20:21 — forked from icaoberg/killthemall.sh
[PBS] Delete all of the jobs associated to a specific user
#!/bin/bash
USERNAME=icaoberg
#to kill all the jobs
qstat -u$USERNAME | grep "$USERNAME" | cut -d"." -f1 | xargs qdel
#to kill all the running jobs
qstat -u$USERNAME | grep "R" | cut -d"." -f1 | xargs qdel
@martinzh
martinzh / rand_bool_prob.jl
Created December 17, 2015 01:53
Arreglo de valores Bool con probabilidad p y 1-p
#define probabilidad
# p -> true
# 1-p -> false
p = 0.1
#tamanio del arreglo
n = 100
#declara arreglo
vals = Array{Bool}(n)
julia> versioninfo(true)
Julia Version 0.3.11
Commit 483dbf5* (2015-07-27 06:18 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
WORD_SIZE: 64
uname: Darwin 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64 i386
Memory: 8.0 GB (1407.671875 MB free)
Uptime: 945.0 sec
martin@cubo:~$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.7 (2015-03-23 21:36 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org release
|__/ | x86_64-linux-gnu