Skip to content

Instantly share code, notes, and snippets.

View shell's full-sized avatar
💭
ʕ'ᴥ'ʔ ("'')

Vladimir Penkin shell

💭
ʕ'ᴥ'ʔ ("'')
View GitHub Profile

Keybase proof

I hereby claim:

  • I am shell on github.
  • I am penkinv (https://keybase.io/penkinv) on keybase.
  • I have a public key ASDMAsXB4uFImyX1825nDysSbtLRXx02NZdaM6oWdp736wo

To claim this, I am signing this object:

@shell
shell / Code.js
Created January 8, 2019 13:18
Google apps script to remove notifications older than 2 days
function myFunction() {
GmailApp.search("in:inbox subject:\"[Slack] Notifications\" older_than:2d")
.forEach(function (msg) { return msg.moveToTrash(); });
}
@shell
shell / core_exts.rb
Created August 2, 2011 14:08
Array#to_proc
## Like a Symbol#to_proc but for array
class Array
def to_proc
lambda {|object|
self.map{|symbol| object.send(symbol.to_sym)}
}
end
end