They will be injected by Tampermonkey
index-testing-modal1.html and index-testing-modal2.html are only for testing locally the UI. The ones that will be injected will be modal1-select.html and modal2.html
modal1 is for selecting templates
#!/bin/bash | |
current_branch=`git rev-parse --abbrev-ref HEAD` | |
if [[ $current_branch =~ master|main ]]; then | |
message="Please don't push directly to $current_branch." | |
echo -e "\033[1;31mERROR: $message\033[0m"; | |
exit 1 | |
fi | |
repo_dir=`git rev-parse --show-toplevel` |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:ListBucket", |
// ------------ NodeJS runtime --------------- | |
// Add aws-sdk in package.json as a dependency | |
// Example: | |
// { | |
// "dependencies": { | |
// "aws-sdk": "^2.0.9", | |
// } | |
// } | |
// Create your credentials file at ~/.aws/credentials (C:\Users\USER_NAME\.aws\credentials for Windows users) | |
// Format of the above file should be: |
#!/bin/bash | |
awk '{s+=$1}END{print "\nAverage:",s/NR,"\n"}' numbers.txt |
// ==UserScript== | |
// @name Youtube Link for tracks | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @updateURL https://gist.github.com/josep11/8766d64b775c5d35100c9d1902ab6cbc/gistfile.user.js | |
// @downloadURL https://gist.github.com/josep11/8766d64b775c5d35100c9d1902ab6cbc/gistfile.user.js | |
// @description Creates a link to search in youtube for the selected song | |
// @author Josep Alsina <josep_a11@hotmail.com> | |
// @match http://www.radionomy.com/* | |
// @exclude http://www.radionomy.com/*/ad/* |
/* | |
sortByAttribute($people, 'age'); //orders $people by age | |
$people = [ | |
[ | |
'name' => 'Josep', | |
'age' => '22' | |
], | |
[ | |
'name' => 'Laura', | |
'age' => '54' |
'################ name it date.vbs ################# | |
Function Write(data, outFile) | |
Set objFSO=CreateObject("Scripting.FileSystemObject") | |
Set objFile = objFSO.CreateTextFile(outFile,True) | |
objFile.Write data & vbCrLf | |
objFile.Close | |
End Function | |
Function ReadDate() |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |