This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title":"VSCode Fix", | |
"rules":[ | |
{ | |
"description":"Fix Cmd+[", | |
"_comment":"https://github.com/microsoft/vscode/issues/115651", | |
"manipulators":[ | |
{ | |
"conditions":[ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <M5StickC.h> | |
#include <WiFi.h> | |
#include <HTTPClient.h> | |
#define REMO_API_URL "https://api.nature.global/1/appliances" | |
#define REMO_AUTH "Bearer ***" | |
#define WIFI_SSID "***" | |
#define WIFI_PASSWORD "***" | |
HTTPClient http; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'esa' | |
client = Esa::Client.new(access_token: "***", current_team: 'foo') | |
since_number = 0 | |
loop do | |
posts = client.posts(q: "sort:number-asc number:>#{since_number}", per_page: 100).body['posts'] | |
break if posts.empty? | |
puts "number: #{posts.first['number']}~#{posts.last['number']}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name macOS Catalina Chrome v78-79 Hiragino Font Fix | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description This will no longer be needed after chrome v80. | |
// @author fukayatsu | |
// @match http://*/* | |
// @match https://*/* | |
// @grant GM_addStyle | |
// @run-at document-idle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
Creating possibility state for rack (~> 1.0) (3 remaining) | |
Attempting to activate rack (1.1.0) | |
Found existing spec (rack (2.0.3)) | |
Unsatisfied by existing spec (rack (2.0.3)) | |
Unwinding for conflict: rack (~> 1.0) to 22 | |
Creating possibility state for rack (~> 1.0) (2 remaining) | |
Attempting to activate rack (1.0.1) | |
Found existing spec (rack (2.0.3)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Config for https://github.com/Hammerspoon/hammerspoon | |
local function keyStroke(mod, key) | |
return function() hs.eventtap.keyStroke(mod, key) end | |
end | |
local function remap(appName, mod1, key1, mod2, key2) | |
if (not appName) then | |
return hs.hotkey.bind(mod1, key1, keyStroke(mod2, key2)) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var d=new Date();d.setMinutes(-d.getTimezoneOffset());window.open('https://www.amazon.co.jp/s/?rh=n:2293143051,p_n_date:'+d.toISOString().slice(0,10).replace(/-/g,""))})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. if not (unless) | |
if foo != bar | |
# irregular case | |
else | |
# default case | |
# 2. case | |
case | |
when foo != bar | |
# irregular case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
focusMain = (e) -> | |
atom.workspace.getActivePane().activate() | |
for panel in atom.workspace.getBottomPanels() | |
if panel.item[0]?.className == 'terminal-plus terminal-view' | |
panel.item.terminal?.blur() | |
focusTerminal = (e) -> | |
terminalFound = false | |
for panel in atom.workspace.getBottomPanels() | |
if panel.item[0]?.className == 'terminal-plus terminal-view' |
NewerOlder