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
| /* | |
| Drafts App Bookmarklets (http://agiletortoise.com/drafts) | |
| Author: Sean Korzdorfer | |
| Date: 13:51:29 Wed May 23 2012 | |
| Re: https://gist.github.com/gists/2579288 | |
| Most of the Date functions used snippets I created from: | |
| http://www.webdevelopersnotes.com/tips/html/10_ways_to_format_time_and_date_using_javascript.php3 | |
| */ |
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
| javascript:var%20inputs=document.getElementsByTagName('input'),firstSearch=false,textinputs=[],i,t;for(i=0;i<inputs.length;i++)if(((inputs[i].type==='text')||(inputs[i].type==='search'))&&inputs.disabled!==true)textinputs.push(inputs[i]);for(t=0;t<textinputs.length;t++)if((/search/i).test(textinputs[t].className)||(/(^[sq]$|search|query)/i).test(textinputs[t].id)||(/^(q(uery)?|s|.*?search.*)$/).test(textinputs[t].name)){firstSearch=textinputs[t];break;}if(!firstSearch)textinputs[0].focus();else%20firstSearch.focus(); |
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
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| # == Synopsis | |
| # Proof of concept using Fuzzy File Finder to locate a script to edit | |
| # Searches a set of predefined locations for a fuzzy string | |
| # e.g. "mwp" matches both "myweatherprogram" and "mowthelawnplease" | |
| # ................on "(m)y(w)eather(p)rogram" and "(m)o(w)thelawn(p)lease" | |
| # | |
| # Results are ranked and a menu is displayed with the most likely | |
| # match at the top. Editor to be launched and directories to search |
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
| /* WITH MODS TO ORIG -- iOS Browser Bookmarklets to launch other apps and stuff */ | |
| /* ver 2014-04-14a */ | |
| /* backing up my "Open In" bookmarks */ | |
| // note iOS6 requires some changes to these | |
| // BEGIN TESTING STUFF -- IN PROFRESS LIKELY NOT WORKING | |
| // SOME WORK, MOST tests are not WORK -- | |
| // PINNER APP TEST STUFF (as a private one) | |
| // the page title as the title and your selected text as the description. |
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
| # Hockey | |
| # | |
| # A air hockey game for two players. First to | |
| # seven wins. | |
| # Most of the game is drawn with the scene | |
| # module. Goal and winner messages are animated | |
| # with layers. | |
| from scene import * | |
| from sound import * |
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
| # Using any version of PowerShell | |
| $parameters = New-Object System.Collections.Specialized.NameValueCollection | |
| $parameters.Add("token", "APP_TOKEN") | |
| $parameters.Add("user", "USER_KEY") | |
| $parameters.Add("message", "hello world") | |
| $client = New-Object System.Net.WebClient | |
| $client.UploadValues("https://api.pushover.net/1/messages.json", $parameters) | |
| # Using PowerShell v3 only with new Invoke-RestMethod cmdlet | |
| $uri = 'https://api.pushover.net/1/messages.json' |
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
| javascript:(function() { var u = location.href, a = document.createElement('a'); a.href = u; location.href = "http://www.newsblur.com/?url=" + encodeURIComponent(a.hostname); }()) |
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
| (some notepad++'s theme) | |
| http://wiki.macromates.com/Themes/UserSubmittedThemes | |
| (Textmate theme to Notepad++ (.tmTheme converted to .xml, go to [users]/AppData/Roaming/Notepad++, replace the stylers.xml with the xml file)) | |
| http://framework.lojcomm.com.br/tmTheme2nppStyler/ | |
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
| javascript:(function%20pushoverBookmarklet()%20%7B%20%20%20%20%20%20%20%20%20%20%20%20function%20pushoverNotification(token,%20user,%20title,%20message,%20url)%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20params%20%3D%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20token:%20token%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20user:%20user%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20title:%20title%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20message:%20message%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20url:%20url%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20data%20%3D%20%221%3D1%22%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for%20(var%20key%20in%20params)%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20data%20%2B%3D%20%22%26%22%20%2B%20key%20%2B%20%22%3D%22%20%2B%20params%5Bkey%5D%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%2 |
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
| # File Transfer for Pythonista | |
| # ============================ | |
| # This script allows you to transfer Python files from | |
| # and to Pythonista via local Wifi. | |
| # It starts a basic HTTP server that you can access | |
| # as a web page from your browser. | |
| # When you upload a file that already exists, it is | |
| # renamed automatically. | |
| # From Pythonista's settings, you can add this script | |
| # to the actions menu of the editor for quick access. |