Skip to content

Instantly share code, notes, and snippets.

Eamonn Bell eamonnbell

Block or report user

Report or block eamonnbell

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
@eamonnbell
eamonnbell / config.py
Created May 31, 2018
qTile config base (laptop)
View config.py
# Copyright (c) 2010 Aldo Cortesi
# Copyright (c) 2010, 2014 dequis
# Copyright (c) 2012 Randall Ma
# Copyright (c) 2012-2014 Tycho Andersen
# Copyright (c) 2012 Craig Barnes
# Copyright (c) 2013 horsik
# Copyright (c) 2013 Tao Sauvage
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@eamonnbell
eamonnbell / tool.sh
Created Apr 20, 2018
Hack for getting to the VLM editor menu in the JagCD emu
View tool.sh
for pid in $(xdotool search "")
do
echo "Doing $pid..."
xdotool key --window $pid KP_1+KP_0+KP_3+KP_Multiply
done
@eamonnbell
eamonnbell / tool.sh
Created Apr 20, 2018
Hack for getting to the VLM editor menu in the JagCD emu
View tool.sh
do
echo "Doing $pid..."
xdotool key --window $pid KP_1+KP_0+KP_3+KP_Multiply
done
@eamonnbell
eamonnbell / spotify_implict_grant.html
Created Sep 5, 2017
Example of Implicit Grant flow authorization with Spotify API.
View spotify_implict_grant.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Spotify API - Implicit Grant Flow</title>
</head>
View optionset_generator.py
import collections
import itertools
def optionset_generator(optionset_schema):
iterables = {}
for key, value in optionset_schema.items():
if isinstance(value, collections.Iterable):
iterables[key] = value
else:
@eamonnbell
eamonnbell / dft_for_music.ipynb
Last active Mar 29, 2017
Introduction to DFT and Fourier phase space for music analysis
View dft_for_music.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eamonnbell
eamonnbell / matrix.ijs
Last active Jan 22, 2017
Serial matrix in J
View matrix.ijs
mod12 =: 12 & |
matrix =. monad : 0
m =. mod12 y -/ (y - (0 { y))
)
pcs =: i. 12
shuf =: {~ ?~@#
newrow =: shuf pcs
@eamonnbell
eamonnbell / gibbs.ipynb
Created Oct 19, 2016
Explaining 'Explaining the Gibbs Sampler'
View gibbs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eamonnbell
eamonnbell / myAffinities.md
Last active Apr 13, 2016
long_term Spotify top tracks for me
View myAffinities.md
Artist Track Name
Orkest De Volharding Hootenanny
Claude Le Jeune Motet Benedicite Dominum
Luigi Dallapiccola Frammenti sinfonici: Danza Magica -
MUNA Winterbreak
William Byrd Christe, qui lux es et dies
Peter Maxwell Davies Veni Sancte Spiritus (arr. of J. Dunstable Veni Sancte Spiritus): Veni creator spiritus
Peter Maxwell Davies Veni Sancte Spiritus (arr. of J. Dunstable Veni Sancte Spiritus): Veni sancte spiritus
Orkest De Volharding Dance Works: Part 1
@eamonnbell
eamonnbell / VR_viz.pde
Last active Nov 14, 2015
VR experiments with Processing
View VR_viz.pde
import org.jsfml.audio.*;
import org.jsfml.window.event.*;
import org.jsfml.window.*;
import org.jsfml.system.*;
import org.jsfml.internal.*;
import org.jsfml.graphics.*;
import java.util.*;
import java.text.*;
import java.nio.file.*;
You can’t perform that action at this time.