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
### 'set -x' is wonderful if you want to see the command as well as output in a script | |
function example { | |
echo "${1}" | |
} | |
VAR="foo" | |
set -x | |
example "${VAR}" | |
# + example foo |
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
# Step 1 | |
# Open Automator | |
# | |
# Step 2 | |
# File - New - Service | |
# | |
# Set the top dropdown boxes to Service receives selected files or folders in Finder.app | |
# Double click or drag Run Shell Script from the left panel, and enter the following: | |
if [[ -d $1 ]]; then |
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
property default_minutes : 30 | |
property wait_percent : 50 -- wait before starting fade | |
set question to "Set a sleep timer for how many minutes?" | |
set options to {"Don't sleep after", "Sleep after", "Cancel"} | |
display dialog question default answer default_minutes ¬ | |
buttons options default button 1 giving up after 30 | |
set {_button, _answer} to {button returned, text returned} of result |
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
""" test.robot | |
*** Settings *** | |
Library OrchestrationLibrary | |
*** Test Cases *** | |
Configuration | |
[Tags] configuration | |
Trigger on Some condition Test 1 | |
Trigger on Some condition test 2 | |
Trigger on Other condition Test 2 |
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
data:text/html, <html contenteditable> |
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
<snippet> | |
<content><![CDATA[\${${SELECTION}}]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<!-- <tabTrigger>hello</tabTrigger> --> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.python</scope> --> | |
</snippet> | |
<!-- keymap: |
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
param([string]$folder) | |
$command="$args" | |
$filter = "*.*" | |
$Watcher = New-Object IO.FileSystemWatcher $folder, $filter -Property @{ | |
IncludeSubdirectories = $true | |
EnableRaisingEvents = $true | |
} | |
Register-ObjectEvent $Watcher Changed -SourceIdentifier Watcher -Action { | |
$command=$event.MessageData |
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 robot_clean="find . \( -name log.html -or -name report.html -or -name output.xml -or -name debug.log -or -name \"*-screenshot-*.png\" \) -exec rm -rf {} \;" |
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
from inspect import getargspec | |
from types import FunctionType | |
from your_module import (a_method | |
another_method, | |
and_so_on) | |
class ExampleDynamicLibrary(object): | |
def __init__(self): |
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
''' | |
You need to have Keywords-table as the last table inside of the suite- and | |
resource files. Or more clever grepping than presented below. `sed` etc. is also | |
fine if the output would be same as the grep command below. | |
$ grep -irn -A 5000 '* Keywords *' path/to/tests > my_file | |
$ python keywords.py my_file [how_many_scores] | |
or one-liner: | |
$ grep -irn -A 5000 '* Keywords *' path/to/tests | python keywords.py - [how_many_scores] |