Skip to content

Instantly share code, notes, and snippets.

View Ameb's full-sized avatar

Iñigo Biedma Ameb

View GitHub Profile
@Ameb
Ameb / example_remap.py
Created July 7, 2021 08:32 — forked from t184256/example_remap.py
A thoroughly annotated example on keyboard remapping with evdev/uinput.
#!/usr/bin/python3
# CC0, originally written by t184256.
# This is an example Python program for Linux that remaps a keyboard.
# The events (key presses releases and repeats), are captured with evdev,
# and then injected back with uinput.
# This approach should work in X, Wayland, anywhere!
@Ameb
Ameb / gist:03cf926f7e4274259360db4e70ae9a3d
Created June 15, 2019 05:59 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@Ameb
Ameb / ContextCmder-Disable.reg
Created March 2, 2017 06:31 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@Ameb
Ameb / 7-zip-default-extract.reg
Created February 28, 2017 21:18 — forked from zabbarob/7-zip-default-extract.reg
Make 7-Zip extract to folder when double-clicking archives. (based on http://superuser.com/a/447791)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\7-Zip.001\shell]
@="extract"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract]
@="Extract to Folder"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract\command]
@="\"C:\\Program Files\\7-Zip\\7zG.exe\" x \"%1\" -o*"
[HKEY_CLASSES_ROOT\7-Zip.7z\shell]
@Ameb
Ameb / OpenWithSublime.bat
Created May 11, 2016 06:53 — forked from jcppkkk/OpenWithSublime.bat
Add context menu to allow user open file or folder with Sublime as User (or as Admin).
@echo off
:: Path to Sublime Text installation dir.
SET stPath=%~dp0sublime_text.exe
:: Key name for the registry entries.
SET UserEntry=Sublime Text
SET AdminEntry=Sublime Text As Admin
:: Context menu texts.
SET "UserMenuText=Open with Sublime(&-)"
SET "AdminMenuText=Open with Sublime As Admin(&+)"
@Ameb
Ameb / address-GeoLocation.js
Created April 14, 2016 21:56 — forked from iwek/address-GeoLocation.js
GeoLocation with Google API Reverse Geocoding Form Filler
var find1 = document.getElementById("find1");
var find2 = document.getElementById("find2");
var info = document.getElementById("info");
//use array to determine how it goes into DOM, I think you could use Data Attributes: http://html5doctor.com/html5-custom-data-attributes/
var selector = [];
find1.addEventListener("click", function() {
@Ameb
Ameb / Wishlist calculator
Last active August 29, 2015 14:24 — forked from icodesido/Wishlist calculator
for EUR, using commas as decimal separators
prices = jQuery('#item-page-wrapper .price-section .a-color-price').text().replace(',', '.');
prices = prices.replace(/\s/g,'').split('EUR');
total = 0;
var v;
for(var i = 0; i < prices.length; i++) {
v = parseFloat(prices[i]);
if (!isNaN(v)) total += v;
}