Skip to content

Instantly share code, notes, and snippets.

View minusfive's full-sized avatar
🐢
I may be slow to respond.

Jorge Villalobos minusfive

🐢
I may be slow to respond.
View GitHub Profile
@caksoylar
caksoylar / zen-display-improvements.md
Last active May 22, 2024 15:30
Corne-ish Zen display improvements

Display improvements for the Corne-ish Zen keyboard

This note details the changes made to the Zen and ZMK codebase to improve the experience of e-ink displays.

Getting the changes

You can test out below changes using your Zen config repo by modifying your config/west.yml file, following ZMK instructions:

manifest:
  remotes:
 - name: caksoylar
@urob
urob / git_for_zmk.md
Last active June 3, 2024 03:49
Maintaining a personal ZMK fork
@andyngo
andyngo / init.lua
Last active August 23, 2023 09:32
My personal hammerspoon config.
-- global config --
-- disable all window animation
hs.window.animationDuration = 0
-- custom alert style
hs.alert.defaultStyle.radius = 4
hs.alert.defaultStyle.fillColor = {white = 0, alpha = 0.9}
hs.alert.defaultStyle.strokeColor = {white = 0, alpha = 0}
hs.alert.defaultStyle.fadeInDuration = 0
hs.alert.defaultStyle.fadeOutDuration = 0
@zmwangx
zmwangx / mac-keys-unicode.md
Last active April 21, 2024 20:29
Unicode characters for special keys on the Mac keyboard (not necessarily Mac specific). #symbols

⌘ – ⌘⌘ – the Command Key symbol
⌥ – ⌥⌥ – the Option Key symbol
⇧ – ⇧⇧ – the Shift Key symbol
⌃ – ⌃⌃ – the Control Key symbol
⎋ – ⎋⎋ – the ESC Key symbol
⇪ – ⇪⇪ – the Capslock symbol
⏎ – ⏎⏎ – the Return symbol
⌫ – ⌫⌫ – the Delete / Backspace symbol
⇥ – ⇥⇥ – the Tab Key symbol

@ramseyp
ramseyp / hide-editor.php
Created November 12, 2012 15:48
Hide the content editor for certain pages in WordPress
<?php
/**
* Hide editor on specific pages.
*
*/
add_action( 'admin_init', 'hide_editor' );
function hide_editor() {
// Get the Post ID.
@heycarsten
heycarsten / bounce.js
Created August 29, 2012 03:21
Underscore's debounce and limit as Function prototypes.
// These are yoinked from Underscore.js but are added to the function prototype
// so that we can ruin the world.
(function() {
var debounce, throttle;
debounce = function(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
@muellerj
muellerj / gist:1229134
Created September 20, 2011 14:02 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
SIGN UP
curl -H "Content-Type:application/json" -H "Accept:application/json" \
-d "{\"user\":{\"password_confirmation\":\"12345678\", \"password\":\"12345678\", \"email\":\"test5@test.com\"}}" \
http://your_server.com/users
SIGN IN
curl -H "Content-Type:application/json" -H "Accept:application/json" \
-d "{\"user\":{\"remember_me\":\"0\", \"password\":\"12345678\", \"email\":\"test5@test.com\"}}" \
http://your_server.com/users/sign_in