Skip to content

Instantly share code, notes, and snippets.

View arielconde's full-sized avatar
🎯
Focusing

Ariel Conde arielconde

🎯
Focusing
View GitHub Profile
import subprocess
import argparse
import os
import IPython
parser = argparse.ArgumentParser(description='Delete a user .rstudio directory to reset their rstudio-server account')
parser.add_argument('user', help='User')
args = parser.parse_args()
@arielconde
arielconde / cepstrum.m
Last active October 13, 2017 07:49
Pitch Frequency Estimation of an Audio File (.wav) using Cepstral Coefficients
% y signal in time domain
% fs signal sampling rate
[y, fs] = wavread('sample.wav');
frame_size = 20; % in ms, STFT 15-25 ms frame size
N = (frame_size/1000) * fs; % number of samples per frame
% FFT size
@arielconde
arielconde / BlurModal.html
Created May 25, 2017 08:55
Blur on Modal Shown
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
@arielconde
arielconde / poloniex.py
Created May 1, 2017 20:44
boredom strikes
import requests, bs4
def scrape():
# request the site
address = 'https://poloniex.com/fees/'
res = requests.get(address)
# create beautiful soup
site_soup = bs4.BeautifulSoup(res.text, "html.parser")
@arielconde
arielconde / lazy-pupian.js
Last active October 13, 2017 14:08
pup faculty evaluation shortcut
// For the lazy ones
// Click the faculty you want to evaluate
// make sure it he/she is the faculty you want to evaluate :)
// Press F12 on google chrome or inspect element, then go to console
// Paste the code below on the console
// Hit enter
// Then use at your own risk
var grade = 5;
@arielconde
arielconde / designer.html
Last active October 17, 2015 04:35
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">