Skip to content

Instantly share code, notes, and snippets.

@felipeluna
felipeluna / MiniDox.kbd.json
Last active September 21, 2023 19:26 — forked from tw1t611/MiniDox.kbd.json
MiniDox
[
{
"backcolor": "#f0f0f0",
"name": "MiniDox",
"background": {
"name": "Bamboo",
"style": "background-image: url('/bg/wood/bamboo.jpg');"
},
"switchMount": "cherry",
"pcb": false
@felipeluna
felipeluna / i3-config-move_workspace
Created January 28, 2020 07:29 — forked from magujs/i3-config-move_workspace
i3 move a worksapce to another monitor (multi monitor setup)
# i3 move a workspace to another monitor (multi monitor setup)
mode "move_workspace" {
bindsym Up move workspace to output up
bindsym Down move workspace to output down
bindsym Left move workspace to output left
bindsym Right move workspace to output right
bindsym Escape mode "default"
}
@felipeluna
felipeluna / .gitignore
Created September 18, 2018 19:52 — forked from jbergler/.gitignore
Acestream on Mac
.vagrant
@felipeluna
felipeluna / bandcamp.js
Last active December 23, 2017 15:55 — forked from icodeforlove/bandcamp.js
download mp3's from bandcamp
var commands = [];
commands.push('mkdir "' + TralbumData.current.title + '"');
commands.push('cd "' + TralbumData.current.title + '"');
TralbumData.trackinfo.forEach(function (track, index) {
if (track.file) {
var href = track.file['mp3-128'];
@felipeluna
felipeluna / jhwhw.cls
Created August 22, 2017 23:04 — forked from jhwilson/jhwhw.cls
JHW document class for Homework assignments
%=====================================================================
% jhwhw.cls
% Provide jhwhw.cls class
%=====================================================================
%=====================================================================
% Identification
%=====================================================================
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class]
@felipeluna
felipeluna / Dockerfile
Created April 17, 2017 02:42 — forked from tarao/Dockerfile
Octave in a docker container
FROM debian:jessie
RUN apt-get update && apt-get install -yq less sudo octave && apt-get clean
COPY entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]
@felipeluna
felipeluna / setup-franz-ubuntu.sh
Created September 19, 2016 11:37 — forked from ruebenramirez/setup-franz-ubuntu.sh
setup franz on ubuntu
#!/bin/bash
sudo rm -fr /opt/franz
sudo rm -fr /usr/share/applications/franz.desktop
# create installation dir
sudo mkdir -p /opt/franz
#install franz
@felipeluna
felipeluna / gist:b157b4a50c8069293efd9c7c30312b01
Created May 8, 2016 05:01 — forked from why-not/gist:4582705
Pandas recipe. I find pandas indexing counter intuitive, perhaps my intuitions were shaped by many years in the imperative world. I am collecting some recipes to do things quickly in pandas & to jog my memory.
"""quick way to create a data frame to try things out"""
df = pd.DataFrame(np.random.randn(5, 4), columns=['a', 'b', 'c', 'd'])
df['A'] """ will bring out a col """ df.ix[0] """will bring out a row, #0 in this case"""
"""to get an array from a data frame or a series use values, note it is not a function here, so no parans ()"""
point = df_allpoints[df_allpoints['names'] == given_point] # extract one point row.
point = point['desc'].values[0] # get its descriptor in array form.
@felipeluna
felipeluna / sonic-pi-tutorial.md
Created April 25, 2016 11:32 — forked from jwinder/sonic-pi-tutorial.md
Sonic Pi tutorials concatenated

1 Welcome to Sonic Pi

Welcome friend :-)

Welcome to Sonic Pi. Hopefully you're as excited to get started making crazy sounds as I am to show you. It's going to be a really fun ride where you'll learn all about music, synthesis, programming, composition, performance and more.

But wait, how rude of me! Let me introduce myself - I'm

@felipeluna
felipeluna / index.html
Created March 28, 2016 15:56 — forked from makoto/index.html
Google Fusion json api using jQuery
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<style type="text/css" media="screen">
.chart rect {
stroke: white;
fill: steelblue;
}
</style>