Skip to content

Instantly share code, notes, and snippets.

View FelipeCortez's full-sized avatar
💭
🐴

Felipe FelipeCortez

💭
🐴
View GitHub Profile
@FelipeCortez
FelipeCortez / lab2.sce
Created March 8, 2017 00:41
Mary had a little lamb
rate = 8000
freqs = [494 440 392 440 494 494 494]
x = 0:1/rate:3.5
y = zeros(x)
range = 1:4001
for i = 1:length(freqs)
y(range) = exp(-10 * x(range) + 5 * (i - 1)) .* sin(2 * %pi * freqs(i) * x(range))
range = range + 4000
end
@FelipeCortez
FelipeCortez / .vimrc
Last active August 29, 2015 14:00
Simplified .vimrc
syntax on
filetype plugin indent on
set encoding=utf-8
set showcmd
set relativenumber
set noswapfile
set undofile
set undodir=~/.vim/undo
set undolevels=1000
@FelipeCortez
FelipeCortez / listings.tex
Last active March 14, 2024 16:35
LaTeX pretty listings
\usepackage{listings}
\usepackage{lstautogobble} % Fix relative indenting
\usepackage{color} % Code coloring
\usepackage{zi4} % Nice font
\definecolor{bluekeywords}{rgb}{0.13, 0.13, 1}
\definecolor{greencomments}{rgb}{0, 0.5, 0}
\definecolor{redstrings}{rgb}{0.9, 0, 0}
\definecolor{graynumbers}{rgb}{0.5, 0.5, 0.5}