Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Pachamaltese pachamaltese

🎯
Focusing
Block or report user

Report or block pachamaltese

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Pop.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>PACHA</string>
<key>comment</key>
<string>Created by Pacha based on Pop OS terminal palette</string>
<key>name</key>
<string>Pop</string>
@pachamaltese
pachamaltese / bev.csv
Created Sep 27, 2018
Beverages sales
View bev.csv
M.hi.p M.lo.p MET.hi.p MET.lo.p MET.sp.p SEC.hi.p SEC.lo.p M.hi M.lo MET.hi MET.lo MET.sp SEC.hi SEC.lo
59.25 29.19 63.67 26.03 50.09 58.56 29.19 458 1455 2037 3437 468 156 544
56.26 26.31 60.34 25.54 48.82 54.64 26.31 477 1756 1700 3436 464 151 624
56.26 26.25 60.79 25.69 48.56 57.9 26.25 539 2296 1747 3304 490 178 611
49.33 26.15 55.09 26.46 47.74 49.7 26.15 687 3240 2371 3864 657 217 646
61.34 25.88 65.09 25.72 50.75 63.72 25.88 389 2252 1741 3406 439 141 624
61.4 27.35 67.91 26.17 52.63 68.38 27.35 399 1901 2072 3418 453 149 610
65.83 26.67 69.43 25.38 51.36 67.84 26.67 392 1939 2353 3553 423 134 623
60.34 26.17 65.56 25.64 51.44 63.93 26.17 417 1999 2909 3376 408 148 599
46.77 27.2 53.56 25.94 48.27 46.71 27.2 568 1798 3204 3233 501 195 551
@pachamaltese
pachamaltese / getHexValue.gs
Created May 18, 2018
extract cells background color
View getHexValue.gs
function getHexValue(range) {
return SpreadsheetApp.getActive().getRange(range).getBackground();
}
@pachamaltese
pachamaltese / cancel-white-noise.sh
Created Apr 27, 2018
fix-headphones-noise-dell-xps
View cancel-white-noise.sh
#! /bin/bash
# this goes in /etc/acpi/
# also run sudo chmod +x /etc/acpi/cancel-white-noise.sh
amixer -c0 sset 'Headphone Mic Boost' 10dB
View openblas_vs_mro.R
#library(devtools)
#install_github("andrie/version.compare")
library(data.table)
library(dplyr)
library(version.compare)
scale.factor = 1.0
r = switch(
View mkl_vs_mro.R
#library(devtools)
#install_github("andrie/version.compare")
library(data.table)
library(dplyr)
library(version.compare)
scale.factor = 1.0
r = switch(
View 09-dot-profile
#export RSTUDIO_WHICH_R=/usr/bin/R
export RSTUDIO_WHICH_R=/opt/R/R-3.4.2-intel-mkl/bin/R
#export RSTUDIO_WHICH_R=/opt/R/R-3.4.2-openblas/bin/R
#export RSTUDIO_WHICH_R=/opt/R/R-3.4.2-defaults/bin/R
#export RSTUDIO_WHICH_R=/opt/microsoft/ropen/3.4.2/lib64/R/bin/R
@pachamaltese
pachamaltese / 01-install-r-cran-with-mkl
Last active Apr 21, 2018
01-install-r-cran-with-mkl
View 01-install-r-cran-with-mkl
# 1: Add RStudio to apt sources
# key added after sudo apt-get update returned a warning following this guide: https://support.rstudio.com/hc/en-us/articles/218004217-Building-R-from-source
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
printf '#CRAN mirror\ndeb https://cran.rstudio.com/bin/linux/ubuntu artful/\ndeb-src https://cran.rstudio.com/bin/linux/ubuntu artful/\n' | sudo tee -a /etc/apt/sources.list.d/cran-mirror.list
# 2: Enable development repositories
# you need to enable multiverse repo or packages as xvfb won't be found
printf 'deb http://us.archive.ubuntu.com/ubuntu artful main restricted universe multiverse
@pachamaltese
pachamaltese / 02-install-r-cran-openblas
Last active May 7, 2019
02-install-r-cran-openblas
View 02-install-r-cran-openblas
# 1: Add RStudio to apt sources
# key added after sudo apt-get update returned a warning following this guide: https://support.rstudio.com/hc/en-us/articles/218004217-Building-R-from-source
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
printf '#CRAN mirror\ndeb https://cran.rstudio.com/bin/linux/ubuntu artful/\ndeb-src https://cran.rstudio.com/bin/linux/ubuntu artful/\n' | sudo tee -a /etc/apt/sources.list.d/cran-mirror.list
# 2: Enable development repositories
# you need to enable multiverse repo or packages as xvfb won't be found
printf 'deb http://us.archive.ubuntu.com/ubuntu artful main restricted universe multiverse
@pachamaltese
pachamaltese / 03-install-r-cran-defaults
Last active Feb 23, 2018
03-install-r-cran-defaults
View 03-install-r-cran-defaults
cd ~/GitHub/r-with-intel-mkl/
rm -rf R-3.4.2
tar xzvf R-3.4.2.tar.gz
cd R-3.4.2
./configure --prefix=/opt/R/R-3.4.2-defaults --enable-R-shlib
make && sudo make install
printf 'export RSTUDIO_WHICH_R=/opt/R/R-3.4.2-defaults/bin/R\n' | tee -a ~/.profile
You can’t perform that action at this time.