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
/* | |
WebNotepad - create a local-storage browser-based notepad app | |
Usage: | |
1) Include webnotepad.js | |
2) Create DIV element | |
<div id="webnote"></div> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* | |
Update Files using Github API from Google Script | |
Installation: | |
1) Add file to the top of the list in App Script project | |
2) Add the following script properties to App Script project: | |
github_user -> will contain the username of the commit user |
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
################################## | |
# | |
# Create JsonFS File from Directory in PowerShell | |
# | |
# Usage: | |
# | |
# New-JsonFSFile -Path <directory-path> -File <target-JSON-file> [-Unicode $True] | |
# | |
# If the -Unicode option is omitted text files will be encoded ASCII values | |
# |
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
/* | |
Convert Unicode string to ASCII string | |
*/ | |
String.prototype.toASCII = function() { | |
return this.replace(/\x00/g,''); | |
}; | |
/* | |
Recreation of the Python STRING.format() function |
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
######################################## | |
# Typer - Wrapper for xdotool key stroke functionality | |
# | |
# Usage: | |
# | |
# Create Typer instance | |
# | |
# k = Typer() | |
# | |
# Create Typer instance with custom X windows display name |
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
/* | |
Add phone numbers found in Gmail e-mails to a Google single contact | |
Usage: | |
1. Create a contact (use an purposely invalid e-mail address) i.e. sender-emails@myaccount | |
2. Include this script in your project | |
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
/* | |
Logs a row of data point to Google Sheets | |
Requirements: | |
Create two script properties, log_file and log_sheet, which contain the file ID of the spreadsheet | |
and the sheet containing the log respectively | |
The first row of the spreadsjeet is reserved for column headers |
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
/* | |
GsIFTTT | |
Call IFTTT Webhooks from Google Scripts | |
Setup: | |
Add a Script Property to your project named "ifttt_key" to store your IFTTT API Key |
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
/* | |
Update Repository Files using Github API | |
Requires webrequest.js (https://gist.github.com/bng44270/61122a1947591d50004fcd9ee72d643d) | |
Usage: | |
var gh = new GithubFile('API-TOKEN','USERNAME','EMAIL-ADDRESS'); | |
var prFile = gh.getFile('REPOSITORY','FILE-PATH'); |
NewerOlder