Skip to content

Instantly share code, notes, and snippets.

View baylej's full-sized avatar
🤠
Howdy Howdy Howdy!

Jon Bayle baylej

🤠
Howdy Howdy Howdy!
View GitHub Profile
@baylej
baylej / bc_audio_slider.user.js
Created January 26, 2021 22:12
Bandcamp Audio Slider
// ==UserScript==
// @name Bandcamp Audio Slider
// @description Add a volume slider to Bandcamp's audio player.
// @version 1.1.0
// @updateURL https://gist.githubusercontent.com/rakiru/b358f54915ef135a66ca30c915dd925c/raw
// @include https://*.bandcamp.com/*
// @include https://bandcamp.com/*
// @run-at document-end
// @grant GM_addStyle
// @icon https://s4.bcbits.com/img/bc_favicon.ico
@baylej
baylej / .Xresources
Last active January 5, 2021 08:44
gitk Dark
*TkTheme: mrhide
@baylej
baylej / .gitconfig
Last active November 19, 2021 09:00
My git config (mainly aliases)
[core]
editor = vim
pager = less -F -X
[rebase]
autosquash = true
[alias]
; fetch-tags <remote> : fetch all tags from remote
fetch-tags = "!f() { if [ -z \"$1\" ]; then echo \"missing argument: remote\"; else git fetch \"$1\" 'refs/tags/*:refs/tags/*'; fi }; f"
; aliases : print all aliases
aliases = !git config -l | grep -E ^alias | cut -c 7-
@baylej
baylej / perlin_alleg.c
Created January 22, 2019 14:20
Perlin noise with allegro
//
// Perlin noise generator
//
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#define B 0x100
@baylej
baylej / fix_tweetdeck_dark.user.css
Last active November 2, 2017 14:19
Fix tweetdeck for dark toolkits (plus cosmetics on small screens)
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("tweetdeck.twitter.com") {
.detail-view-inline-text,
.compose-text-container { background-color: #2b2b2c; }
.avatar { border-radius: 10% !important; }
#column-navigator { overflow: hidden !important; }
#container { bottom: 0; }
.js-search-in-popover > div.js-popover { background-color: #222; }
.compose-text,
@baylej
baylej / join_lines.bsh
Created July 24, 2017 08:37
Netbeans Join lines macro
caret-end-line selection-down selection-first-non-white remove-selection
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("https?://([^:]+)(:[0-9]+)?/transmission/web/.*") {
* {
background-color: transparent !important;
color: inherit !important;
border-color: var(--border-color) !important;
}
body, div.dialog_container div.dialog_window, .inspector-tab, div#jqContextMenu ul, .ui-widget-content {
@baylej
baylej / output-mrhide.css
Last active July 28, 2016 14:38
MrHide motif for chatzilla
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
@baylej
baylej / france_departements.py
Last active August 29, 2015 14:21
Python script to export paragliding sites in France to a KML file (for Google Earth)
# -*- coding: utf-8 -*-
code_to_name = dict({
'01': "Ain",
'02': "Aisne",
'03': "Allier",
'04': "Alpes-de-Haute-Provence",
'05': "Hautes-Alpes",
'06': "Alpes-Maritimes",
'07': "Ardèche",
'08': "Ardennes",
@baylej
baylej / mkmemfile.c
Created January 18, 2015 01:36
mkmemfile.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
const int BYTES_PER_LINES = 20;
int main(int argc, char *argv[]) {
FILE *in = NULL, *out = NULL;
int i, cpt=0, first=1;
size_t val;