I hereby claim:
- I am omegahm on github.
- I am omegahm (https://keybase.io/omegahm) on keybase.
- I have a public key ASD9OfpkAraJRrz0ig65pntS5pvnGM6miJ3Ievw6IAZuUQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
export PROMPT_COMMAND=__prompt_command | |
function __prompt_command() { | |
local EXIT="$?" | |
PS1="\[${YELLOW}\]\u\[${RESET}\]" | |
PS1+="@" | |
PS1+="\[${CYAN}\]\H\[${RESET}\] " | |
PS1+="\[${WHITE}\]\w\[${RESET}\] " | |
PS1+="\n" |
# -*- coding: utf-8 -*- | |
import bohrium as np | |
from math import pi | |
import matplotlib.pyplot as plt | |
import matplotlib.colors as colors | |
fig = plt.figure() | |
plt.xticks([]) | |
plt.yticks([]) |
#!/usr/bin/env ruby | |
require 'json' | |
gemfile = ARGV[0] || 'Gemfile.lock' | |
gems = {} | |
last_gem = '' | |
name = '' | |
File.readlines(gemfile).each do |line| |
require 'rspec' | |
RSpec.describe do | |
%w(spongebobify minisponge).each do |method| | |
context "##{method}" do | |
it 'fox' do | |
expect(send(method, 'fox')).to eq('fOx') | |
expect(send(method, 'FOX')).to eq('fOx') | |
end |
def run | |
t = 12.hours.from_now | |
n = Time.zone.now | |
puts t | |
puts n | |
puts (t.to_datetime - n.to_datetime) | |
puts (t.to_datetime - n.to_datetime).to_f | |
(t.to_datetime - n.to_datetime).ceil | |
end |
require "benchmark" | |
n = 100_000_000 | |
puts "ADD" | |
puts "n = #{n}" | |
Benchmark.bm(20) do |measure| | |
measure.report("zip") do | |
output = "" |
a = np.random.rand(2000, 3000).astype(np.float32) | |
b = np.random.rand(3000, 4000).astype(np.float32) | |
t0 = time() | |
c = np.dot(a, b) | |
t1 = time() | |
print "[Numpy] It took {}s".format(t1-t0) | |
print c | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
from sys import argv | |
from matplotlib import pyplot as plt | |
from matplotlib import colors | |
def mandelbrot(c, maxiter, h, log_log_h): | |
output = np.empty(c.shape, np.float64) | |
z = np.empty(c.shape, np.complex64) | |
az = np.zeros(c.shape, np.complex64) |