Skip to content

Instantly share code, notes, and snippets.

View michaelfeinbier's full-sized avatar
🖖

Michael Feinbier michaelfeinbier

🖖
View GitHub Profile
@fufexan
fufexan / macos_accel.py
Created September 12, 2024 20:18
macOS-like acceleration curve for libinput
#!/usr/bin/env python3
# macOS-like pointer acceleration for libinput
# Author: fufexan <mihai@fufexan.net>
# Uncomment matplotlib and the plot_curve definition and call to visualize the curve
# import matplotlib.pyplot as plt
import sys
import os
@joshcanhelp
joshcanhelp / scrollTo.js
Last active January 28, 2022 13:21
Animated scrollTo for specific element or top of page
//
// Smooth scroll-to inspired by:
// http://stackoverflow.com/a/24559613/728480
//
module.exports = function (scrollTo, scrollDuration) {
//
// Set a default for where we're scrolling to
//
@andreasheil
andreasheil / CoreOs2JiffyBox.md
Last active February 5, 2018 16:09
CoreOS und JiffyBox

CoreOS und JiffyBox

JiffyBox erstellen

  1. Klick auf Neue JiffyBox erstellen
  2. Distribution ist egal (wird später überschrieben)
  3. Kennwort ist auch egal (wird ja auch überschrieben)
  4. Warten bis die JiffyBox erstellt ist
@farhadi
farhadi / rc4.js
Created March 24, 2012 17:09
RC4 encryption in javascript and php
/*
* RC4 symmetric cipher encryption/decryption
*
* @license Public Domain
* @param string key - secret key for encryption/decryption
* @param string str - string to be encrypted/decrypted
* @return string
*/
function rc4(key, str) {
var s = [], j = 0, x, res = '';