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
-- Delete all from sender - https://gist.github.com/xunker/44fa4404c882c27e0ad25857e9470552 | |
-- For the Mail.app in Mac OS X. It will search for all messages set by the sender of the email message currently open, | |
-- highlight them all and ask if you want to delete them. If you choose "yes" it will delete them for you and then clear | |
-- the search. | |
-- | |
-- Important notes: | |
-- You can load this in Script Editor and then save it as an application so you can run it without Script Editor being open. | |
-- This does not work when Mail.app is in fullscreen mode; it must be in windowed mode. | |
-- You will need to enable "Assistive Devices" support for Script Editor (if run there) or for the .app you saved if you converted it to a standalone app. |
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
// Basic C, but being used in a Swift project of mine. | |
// Just a simple way of getting any floating number to round up or down to a 5 cent figure for calulations. | |
let x = 45.23 | |
let y = 23.58 | |
let z = 82.12 | |
a = round(x/0.05)*0.05 | |
b = round(y/0.05)*0.05 | |
c = round(z/0.05)*0.05 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.