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
<?xml version="1.0"?> | |
<root> | |
<!-- | |
If you have any questions about these bits (or any suggestions for improvements), feel free to tweet me at @handcoding. | |
- Ashley | |
--> | |
<appdef> | |
<appname>SKYPE</appname> | |
<equal>com.skype.skype</equal> | |
</appdef> |
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
<item> | |
<name>Excel: Command+Left and Command+Right to move within cells</name> | |
<appendix>For some reason, Excel wants you to use Home (and presumably End) to move to the beginning or end of a line within a cell, which is bogus.</appendix> | |
<appendix>This also remaps Command+Up and Command+Down so that they move the cursor to the top or bottom of the current cell.</appendix> | |
<identifier>private.excel_fix_command_arrow_keys</identifier> | |
<only>EXCEL</only> | |
<windowname_only>Excel_Window</windowname_only> | |
<uielementrole_only>AXTextArea, AXTextField</uielementrole_only> |
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
local UP = hs.keycodes.map['up'] | |
local DOWN = hs.keycodes.map['down'] | |
local LEFT = hs.keycodes.map['left'] | |
local RIGHT = hs.keycodes.map['right'] | |
local RETURN = hs.keycodes.map['return'] | |
function hasCmd(event) | |
local flags = event:getFlags() | |
return flags.cmd and not (flags.alt or flags.ctrl or flags.shift) | |
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
/* Copyright 2015-2017 Jack Humbert | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
alias: Ashley’s Light Fader | |
description: > | |
Fades a lamp over time. If you have any questions or comments about this | |
script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under | |
the Apache 2.0 license. (v2.0) | |
fields: | |
light: | |
name: 💡 Light | |
description: entity_id of the lamp. | |
selector: |
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
var knownAnwsersTallyList = [ | |
{ | |
index: 0, | |
word: "noon", | |
wordLength: 4, | |
uniqueLettersCount: 2, | |
tally: 175 | |
}, | |
{ | |
index: 1, |
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
// Source : https://lowrey.me/encoding-decoding-base-62-in-es6-javascript/ | |
const base62 = { | |
charset: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''), | |
encode: integer => { | |
if (integer === 0) { | |
return 0; | |
} | |
let s = []; | |
while (integer > 0) { |