Skip to content

Instantly share code, notes, and snippets.

View avilella's full-sized avatar

Albert Vilella avilella

View GitHub Profile
@avilella
avilella / nvidia.md
Last active September 29, 2021 09:32 — forked from cavinsmith/nvidia.md
Nvidia GPUs sorted by CUDA cores

List of desktop Nvidia GPUS ordered by CUDA core count

I created it for those who use Neural Style

Guys, please add your hardware setups, neural-style configs and results in comments!

GPU CUDA cores Memory Processor frequency
GeForce GTX 690 3072 4 GB 915 / 1019
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
my $dir;
my $debug; my $verbose; my $simulate;
my $cmd; my $ret;
my $self = bless {};
use File::Basename;
library(ggplot2)
gr1 <- c(0, 5, 15, 20, 30, 40)
gr3 <- c(0, 5, 10, 25, 40, 60, 80)
gr2 <- c(0, 15, 25, 30, 40)
df2<- data.frame (pos = c(gr1, gr2, gr3), group = c(rep(1, length(gr1)),
rep(2, length(gr2)), rep(3, length(gr3))))
df2$cpos <- cumsum (df2$pos)
cx <- ggplot(df2, aes(fill = factor(group), x = cpos))
@avilella
avilella / aero.py
Created January 11, 2015 18:36
Using xdotool window id
#!/usr/bin/env python3
import subprocess
import sys
move = sys.argv[1]
# move = "left"
def get(cmd):
return subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")
def execute(cmd):
@avilella
avilella / aero.py
Created January 11, 2015 11:06
Aero snap using xdotool
#!/usr/bin/env python3
# From Jacob Vlijm on askubuntu.com
# http://askubuntu.com/a/572052/17702
import subprocess
import sys
move = sys.argv[1]
def get(cmd):
return subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")
@avilella
avilella / aero.py
Created January 11, 2015 02:39
Aero snap effect linux metacity multiple screens
#!/usr/bin/env python3
# From Jacob Vlijm posted in askubuntu.com
import subprocess
import sys
move = sys.argv[1]
def get(cmd):
return subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")
#!/usr/bin/env python3
# From Jacob Vlijm posted in askubuntu.com
import subprocess
import sys
move = sys.argv[1]
def get(cmd):
return subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")