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
javascript: | |
url='https://mail.google.com/mail?view=cm&tf=0&to=&su='; | |
if ("" != document.getSelection()) { | |
url += '[TUMBI]: ' + document.getSelection(); | |
} | |
window.open (url, | |
'gmailForm', |
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
javascript: | |
url='https://mail.google.com/mail?view=cm&tf=0&to=&su='; | |
if ("" != document.getSelection()) { | |
url += '[TUMBI]: ' + document.getSelection() + "&body=" + document.URL; | |
} | |
window.open (url, | |
'gmailForm', |
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
import com.gmongo.GMongo | |
/* | |
Details example | |
[weight: 47, weight_units: "lbs", model_num: 1] | |
*/ | |
/* | |
Price example | |
[retail: 589700, sale: 489700] | |
could also include |
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
import com.gmongo.GMongo | |
class Details { | |
def weight; | |
def weight_units; | |
def model_num; | |
Details(weight, weight_units, model_num) { | |
this.weight = weight; | |
this.weight_units = weight_units; |
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
tell application "Finder" | |
repeat with theDisk in (get disks) | |
if (get ejectable of theDisk) then | |
eject theDisk | |
end if | |
end repeat | |
end tell |
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
url = 'https://mail.google.com/mail?view=cm&tf=0&to='; | |
url += encodeURIComponent('you@rmilk.com') + '&su='; | |
if("" != document.getSelection()) { | |
url += document.getSelection(); | |
} | |
url += "&body=url:" + encodeURIComponent(document.URL); | |
window.open(url, 'gmailForm', 'scrollbars=yes,width=680,height=510,top=175,left=200,status=no,resizable=yes'); | |
void(0); |
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
url='https://mail.google.com/mail?view=cm&tf=0&to=&su='; | |
if("" != document.getSelection()) { | |
url += encodeURIComponent('[TUMBI]: ' + document.getSelection()) + "&body=" + encodeURIComponent(document.URL); | |
} | |
window.open(url, 'gmailForm', 'scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes'); | |
void(0); |
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
(ns wallpaper-manager-core.core | |
(:import [java.io File FileInputStream] | |
javax.imageio.ImageIO)) | |
;; Properties | |
(def wallpaper-source (str (System/getProperty "user.home") "/Downloads/")) | |
(def wallpaper-dest (str (System/getProperty "user.home") "/Pictures/Wallpaper")) |
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
tell application "Finder" to set wallpapers to selection | |
tell application "Image Events" | |
repeat with currentWallpaper in wallpapers | |
set theWallpaper to open (currentWallpaper as alias) | |
tell theWallpaper | |
repeat with dim in [{1920, 1080}, {1280, 800}] | |
-- Scale and Crop to current dimensions | |
scale to size (get item 1 of dim) | |
crop to dimensions dim |
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
javascript:parent.main.document.getElementsByName('user')[0].setAttribute('type', 'text') |
OlderNewer