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
class Array | |
def except(*e) | |
self - e | |
end | |
end | |
# >> [1, 2, 3].except 2 | |
# => [1, 3] | |
# >> [1, 2, 3].except 3 | |
# => [1, 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
ary = [ | |
1, | |
1, | |
1 | |
] | |
class Array | |
def remove_vals(*vals) | |
return out if vals.empty? | |
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
ary = [ | |
1, | |
1, | |
1 | |
] | |
class Array | |
def remove_vals(*vals) | |
out = self.dup | |
__remove_vals(out, *vals) |
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
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
OlderNewer