Skip to content

Instantly share code, notes, and snippets.

View matiskay's full-sized avatar

Edgar Marca matiskay

View GitHub Profile
@matiskay
matiskay / new-gist
Created September 27, 2018 17:02
gist
gist

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@matiskay
matiskay / slack_delete.py
Created November 29, 2017 15:45 — forked from jackcarter/slack_delete.py
Delete Slack files older than 30 days. Rewrite of https://gist.github.com/jamescmartinez/909401b19c0f779fc9c1
import requests
import time
import json
token = ''
#Delete files older than this:
ts_to = int(time.time()) - 30 * 24 * 60 * 60
def list_files():
@matiskay
matiskay / crawler.py
Created November 14, 2017 01:02
A simple json crawler
import json
import requests
r = requests.post(
'http://survey.dataminingperu.com/enc/ajax/comments.php', data={'codigo': '1'}
)
json_response = json.loads(r.text)
@matiskay
matiskay / install.sh
Created February 25, 2016 14:32
Install cryptography in MAXOSX 10.11
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography
\documentclass[a4paper,12pt]{article}
\usepackage{upquote}
\usepackage{listings}
% Check
\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0}
\definecolor{ao}{rgb}{0.0, 0.0, 1.0}
\definecolor{alizarin}{rgb}{0.82, 0.1, 0.26}
\definecolor{byzantium}{rgb}{0.44, 0.16, 0.39}
@matiskay
matiskay / cracklePop.c
Created November 11, 2015 20:08
CracklePop
#include <stdio.h>
#define NUMBER_LIMIT 1000
int main() {
int number;
for (number = 1; number <= NUMBER_LIMIT; number++) {
if (number % 3 == 0 && number % 5 == 0) {
printf("%s\n", "CracklePop");
# VIM
sudo apt-get install vim -y
# LAMP
sudo apt-get update -y
sudo apt-get install apache2 php5 mysql-server libmysql-java ant unzip -y
sudo /etc/init.d/mysql start
# Java
sudo apt-get install openjdk-7-jdk
## Plotting the Singular values for each matrix
for (index in 1:8) {
jpeg(paste0('plots/image-', index, '.jpg'))
plot(1:length(singular.values), singular.values[index,], main = paste("Image", index), xlab = "Singular Value ID", ylab = "Singular Value")
dev.off()
}