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
| # | |
| # trash command | |
| # move files to the trash | |
| # | |
| function trash { | |
| if [[ "$@" == "" ]] | |
| then | |
| echo "usage: trash file ..." | |
| return 64 | |
| fi |
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 getBlogContributors blogs> | |
| <#local contributors = [ ]> | |
| <#local contributorsWithDate = [ ]> | |
| <#local blogPostObjectType = 38> | |
| <#local resultFilter = action.getResultFilter()> | |
| <#if blogs?has_content> | |
| <#list blogs as blog> | |
| <#list blog.contributors as contributor> | |
| <#if (!(contributors?seq_contains(contributor)))> | |
| <#-- check if user is blocked --> |
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
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>Clear Terminal with standard control code</name> | |
| <item> | |
| <name>Command+L to Control+L (only in Terminal)</name> | |
| <identifier>private.l_plus_command_to_l_plus_control</identifier> | |
| <only>TERMINAL</only> | |
| <autogen>__KeyToKey__ KeyCode::L, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::L, ModifierFlag::CONTROL_L</autogen> | |
| </item> |
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
| <!-- Captora --> | |
| <script> | |
| /** | |
| * initialize Captora | |
| * requires jQuery, so load jQuery if not present | |
| */ | |
| (function initCaptora () { | |
| "use strict"; |
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 stateFromZIPCode (zipcode) { | |
| var i, item, l, state, statesByZIP; | |
| // list of zip code ranges and the states they reside in | |
| statesByZIP = [ | |
| [ 210, 3897, "NH" ], | |
| [ 501, 544, "NY" ], | |
| [ 1001, 5544, "MA" ], | |
| [ 2801, 2940, "RI" ], |
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
| <script> | |
| /* | |
| * get geographical location data by ip address | |
| * uses the free ipify.org service | |
| * and the paid ipinfo.io service | |
| * and intelligent caching to minimize requests | |
| */ | |
| // mark the start of the script loading |
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
| /* | |
| * get users with points from Jive Rewards | |
| * this code is meant to be injected into the browser console at | |
| * https://rewards.jivesoftware.com/ | |
| * start by logging into your Jive Community and then | |
| * visit the Jive Rewards Console (in your profile menu) | |
| * | |
| * after injection, it will add a "Download CSV" link in the page | |
| * click the link to download a CSV of all Jive Users with Points | |
| */ |
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
| <script> | |
| /* | |
| * get geographical location data by ip address | |
| * uses the free ipify.org service | |
| * and the paid ipapi.co service | |
| * and intelligent caching to minimize requests | |
| */ | |
| // mark the start of the script loading |
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
| /* | |
| * load the JSON Beautify source | |
| * and let client cache it for 24 hours | |
| */ | |
| (function () { | |
| var now, script, today, url; | |
| url = "https://gist.githubusercontent.com/keithws/6b5333dd09753c26d8cec19414fca2fc/raw/9ae2d49d89b523f1522280eb940456ac49d48f43/json-beautify.js"; | |
| now = Date.now(); |
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
| <script> | |
| /* | |
| * get ip address and add it to the GTM data layer | |
| * uses the free ipify.org service | |
| * and intelligent caching to minimize requests | |
| */ | |
| // mark the start of the script loading | |
| window.dataLayer = window.dataLayer || []; |
OlderNewer