Skip to content

Instantly share code, notes, and snippets.

View jugyo's full-sized avatar
🏠
Working from home

Kaz jugyo

🏠
Working from home
  • The League
  • New Jersey
View GitHub Profile
@no6v
no6v / api_v1_1.rb
Last active December 14, 2015 09:29
Earthquake.once do
Module.new do |api_v1_1_forcibly|
def request(http_method, path, *arguments)
super(http_method, path.sub("/1/", "/1.1/"), *arguments)
end
OAuth::AccessToken.__send__(:prepend, api_v1_1_forcibly)
end
Module.new do |api_v1_1|
@mzp
mzp / echo.html
Created December 11, 2010 01:30
websocket.py
<html>
<head>
<style type="text/css">
.log {
color: red;
}
</style>
<script>
ws = new WebSocket("ws://localhost:8080");
ws.onopen = function (e) {
@joshschmelzle
joshschmelzle / remap-capslock-to-control-win10.md
Last active May 13, 2024 01:55
Remap Caps Lock to Control on Windows 10

Ways to remap caps lock to control on Windows 10

These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).

Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.

Approach 1. Manually through regedit

Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map.