- AFAIK == as far as I know
- IMO == in my opinion
- IMHO == in my humble opinion
- LGTM == look good to me
- AKA == also know as
- ASAP == as sone as possible
- BTW == by the way
- FAQ == frequently asked questions
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
--- start move cursor bewteen screens | |
function move_cursor(direction) | |
return function() | |
local screen = hs.mouse.getCurrentScreen() | |
local nextScreen | |
if direction == "right" then | |
nextScreen = screen:next() | |
else | |
nextScreen = screen:previous() | |
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
--- start quick open applications | |
function open_app(name) | |
return function() | |
hs.application.launchOrFocus(name) | |
if name == 'Finder' then | |
hs.appfinder.appFromName(name):activate() | |
end | |
end | |
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
--- start resucueTime FocusTime session | |
function start_focus_time(duration) | |
return function() | |
local focusTimeURLTpl = "https://www.rescuetime.com/anapi/start_focustime?key=%s&duration=%d" | |
local RESCUETIME_KEY = 'YOUR_RESCUETIME_APIKEY' | |
hs.http.post(string.format(focusTimeURLTpl, RESCUETIME_KEY, duration)) | |
end | |
end | |
hs.hotkey.bind({"alt", "shift"}, "f", start_focus_time(30)) |
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
--- start move cursor bewteen screens | |
function show_circle() | |
local mousepoint = hs.mouse.getAbsolutePosition() | |
local color = {["red"]=0,["blue"]=1,["green"]=0,["alpha"]=0.5} | |
local circle = hs.drawing.circle(hs.geometry.rect(mousepoint.x - 40, mousepoint.y - 40, 80, 80)) | |
circle:setStrokeColor(color) | |
circle:setFill(false) | |
circle:setStrokeWidth(5) | |
circle:bringToFront(true) | |
circle:show(0.5) |
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
{ | |
"sections": [ | |
{ | |
"title": "Continue Watching", | |
"position": 0, | |
"tiles": [ | |
{ | |
"content_id": "494842", | |
"title": "Shottas", | |
"image_ratio": "16by9", |
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
node_modules |
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
node_modules |
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
/** | |
* @description check dot whether in a triangle | |
* @author zhiyelee | |
*/ | |
/** | |
* for tri like below: | |
* A | |
* * * | |
* B * * * C |
NewerOlder