Skip to content

Instantly share code, notes, and snippets.

View steven2358's full-sized avatar

Steven Van Vaerenbergh steven2358

View GitHub Profile
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@steven2358
steven2358 / README.md
Last active December 24, 2015 02:39
Simple Slide: A jQuery slideshow that simply fades between a list of images.

Simple Slide

A jQuery slideshow that simply fades between a list of images.

Features:

  • Options: slide duration, fade time
  • Allows for multiple slideshows at once
  • No bells
  • No whistles
@steven2358
steven2358 / 0_reuse_code.js
Created November 18, 2013 13:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@steven2358
steven2358 / hide_user_history.info
Created November 18, 2013 13:10
Drupal 6 module to hide user history in user profile
name = Hide user history
description = "Hide the history tab on user pages."
package = User interface
version = "6.x-1.0"
core = "6.x"
project = "hide_user_history"
@steven2358
steven2358 / hide_language_options.info
Created November 18, 2013 13:15
Drupal 6 module to hide language options on the user edit page
name = Hide language Options
description = "Hide the language options on the user edit page."
dependencies[] = locale
package = User interface
version = "6.x-1.0"
core = "6.x"
project = "hide_language_options"
@steven2358
steven2358 / cheatsheet.matlab
Last active March 21, 2022 02:37
Matlab Cheat sheet
% Matlab cheat sheet
% Author: Steven Van Vaerenbergh
% Last version: https://gist.github.com/steven2358/7578242
%% SYSTEM
% seed a random generator
seed = 1;
rng('default');
@steven2358
steven2358 / desaturate.js
Created May 27, 2014 09:48
Desaturation bookmarklet
javascript:(function(){
if (document.body.parentNode.style.webkitFilter==='grayscale(1)'){
document.body.parentNode.style.webkitFilter='grayscale(0)'
} else {
document.body.parentNode.style.webkitFilter='grayscale(1)';
}
})();
@steven2358
steven2358 / cue_sheet_converter.py
Last active August 29, 2015 14:02
Convert a playlist in text format to a cue file
# Convert a playlist in text format to a cue file
# Author: steven2358
# Usage:
# 1. Make a playlist file "playlist.txt" using this format:
'''
Album Artist - Album Name
FileName.mp3
MM:SS:mm - Artist1 - Title1
MM:SS:mm - Artist2 - Title2
MM:SS:mm - Artist3 - Title3
@steven2358
steven2358 / pivinv.m
Created June 18, 2014 15:27
Inversion of a matrix by pivoting method
function [A_inv, d] = pivinv(A)
% PIVINV inversion of a matrix by pivoting method
%
% Input: A, a square matrix
% Outputs: A_inv, the inverse of A; d, the determinant of A
%
% Reference: Enrique Castillo and Francisco Jubete, "The Gamma-algorithm
% and some applications," International Journal of Mathematical Education
% in Science and Technology 35, no. 3 (2004): 369-389.
%
@steven2358
steven2358 / bitcoin_wallet_matrix.md
Created August 18, 2014 17:54
Bitcoin Wallet Matrix