This file contains hidden or 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
| import sopel.module | |
| import sopel.formatting | |
| # Adapt imports: | |
| import json | |
| from adapt.intent import IntentBuilder | |
| from adapt.engine import IntentDeterminationEngine | |
| def adapter(*intent_list): |
This file contains hidden or 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
| As far as I know you can put the .desktop file in ~/.local/share/kservices5/ServiceMenus/ if you're on Plasma 5 | |
| Don't forget to edit the commented lines if you want it to work as you wish. | |
| The right-click function does not seem to work when there is a space in the path. Yet. | |
This file contains hidden or 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
| function smsMail() | |
| { | |
| try | |
| { | |
| var label = GmailApp.getUserLabelByName('smsMail'); | |
| var threads = label.getThreads(); | |
| var now = new Date().getTime(); | |
| var cal=getCalendar(); | |
| for(i in threads) |
This file contains hidden or 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
| ################################################# | |
| export sqlitever=3150200 | |
| export luatarget=linux #linux mingw | |
| export luasqltargets="sqlite3 mysql" | |
| ################################################# | |
| git clone https://github.com/keplerproject/luasql | |
| mkdir -p downloads |
This file contains hidden or 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
| /* | |
| * | |
| * Eg. SEND_INTERVAL = 3000; CAPTURE_INTERVAL = 50 | |
| * | |
| * - Capture mousemove & mousedown event after every 50 ms | |
| * - For each captured mouse event, save it into a local cache object | |
| * - After every 3 seconds, sends the cached mouse event history to server, | |
| * then clear cache. Exceptions are: | |
| * 1. A click event triggers data submission to server (as described above) immediately | |
| * 2. Pause sending data to server when there is no new movement, |
This file contains hidden or 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
| function OnPlayerSendMessage(pid, message) | |
| local pname = tes3mp.GetName(pid) | |
| print(pname.."("..pid.."): "..message) | |
| if myMod.OnPlayerMessage(pid, message) == 0 then | |
| return 0 | |
| end | |
| if message:sub(1,1) == '/' then | |
| local cmd = (message:sub(2, #message)):split(" ") |
This file contains hidden or 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
| #!/bin/bash | |
| pip install "$1" & | |
| easyinstall "$1" & | |
| brew install "$1" & | |
| npm install "$1" & | |
| yum install "$1" & dnf instal "$1" & | |
| docker run "$1" & | |
| pkg install "$1" & | |
| apt-get install "$1" & |
This file contains hidden or 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
| from itertools import product | |
| def score(self, other): | |
| first = len([speg for speg, opeg in zip(self, other) if speg == opeg]) | |
| return first, sum([min(self.count(j), other.count(j)) for j in 'ABCDEF']) - first | |
| possible = [''.join(p) for p in product('ABCDEF', repeat=4)] | |
| results = [(right, wrong) for right in range(5) for wrong in range(5 - right) if not (right == 3 and wrong == 1)] | |
| def solve(scorefun): |
This file contains hidden or 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
| // Unlock all cooldowns | |
| CCooldownHandler.prototype.BAttack = function() { | |
| return true; | |
| } |
This file contains hidden or 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
| zenity example |
OlderNewer