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 | |
| # Workspace switcher for GNOME | |
| # Author: thevtm@github | |
| # | |
| # Based on Andy Balaam's workspace-switcher | |
| # http://www.artificialworlds.net/blog/2011/03/04/switching-workspace-in-gnome-via-the-command-line/ | |
| # | |
| # REQUIREMENTS: | |
| # * wmctrl | |
| # |
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
| // ==UserScript== | |
| // @name TW Farm+ | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author Vinícius Tabille Manjabosco | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js | |
| // @match https://*.tribalwars.com.br/game.php?*screen=am_farm | |
| // @grant none | |
| // ==/UserScript== |
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 os | |
| import itertools as it | |
| import numpy as np | |
| import cv2 | |
| ## Args | |
| FilePath = 'gui.png' | |
| OutImageFolder = 'Sprites' | |
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
| template<class _InIt, class _Ty, class _Fn1> inline | |
| void find_iterate(_InIt _First, _InIt _Last, const _Ty& _Val, _Fn1 _Func) | |
| { // find and perform a function if equals to _Val | |
| for (_First = std::find(_First, _Last, _Val); _First != _Last; _First = std::find(++_First, _Last, _Val)) | |
| _Func(*_First); | |
| } | |
| template<class _InIt, class _Pr, class _Fn1> inline | |
| void find_if_iterate(_InIt _First, _InIt _Last, _Pr _Pred, _Fn1 _Func) | |
| { // find and perform a function satisfying _Pred |
NewerOlder