I hereby claim:
- I am lucagrulla on github.
- I am lucagrulla (https://keybase.io/lucagrulla) on keybase.
- I have a public key ASCbQRN_-ONzKQ6Gjkom4xyhKgI1vqIsVHtA-SMN2R-BtQo
To claim this, I am signing this object:
function auto_archive_mails() { | |
var filter = "label:inbox and {label:blah label:foo} older_than:3d" | |
var threads = GmailApp.search(filter); | |
console.log("found:", threads.length, " threads"); | |
threads.forEach(function(t) { | |
console.log("archived:", t.getFirstMessageSubject(), t.getLastMessageDate()); | |
t.moveToArchive(); | |
}) | |
console.log("finished."); |
require 'aws-sdk-cloudwatch' | |
require 'aws-sdk-s3' | |
START_DATE = Time.new(2018,1,21).utc | |
END_DATE = Time.new(2018,1,22).utc | |
REGION = "eu-west-1" | |
CW = Aws::CloudWatch::Client.new(region: REGION) | |
S3 = Aws::S3::Resource.new(region: REGION) |
Verifying that +lucagrulla is my blockchain ID. https://onename.com/lucagrulla |
I hereby claim:
To claim this, I am signing this object:
image_path = "\images\foo\myimage.png" | |
image_path = image_path.dump.gsub(/\\\\/,"/").gsub("\"", "") | |
#total crazyness to cope with windows cut&paste url with backslashes instead of forward slashes:we convert to / just to avoid troubles... | |
#cover scenarios where Windows users find where a file is using windows explorer and copy the location from there(therefore with backslashes) |
(alter-var-root #'clojureql.core/*debug* (constantly true)) |
function getParamsFrom(url) { | |
var seq = url.split("?").pop().split("&") | |
var params = {}; | |
$.each(seq, function(k, v) { | |
tmp = v.split("="); | |
params[tmp[0]] = tmp[1]; | |
}); | |
return params; | |
} |
(->(cql/table db :switches) | |
(cql/aggregate [[:count/id :as :cnt]]) | |
(cql/select (cql/where (= :id 5)))) |
function fecthData() { | |
var people = ["Marc", "Liz", "Ken", "Duncan", "Uday", "Mark", "Charles"]; | |
var grid = []; | |
$.each(people, function(index, person) { | |
$.getJSON('/git/pairs/' + person, function(data) { | |
// parse data and create somethingCool | |
grid.push(data["name"]) | |
if (grid.length === people.length) { | |
$(document).trigger("gridFilled", [grid]); |