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
function sumTime($entitiy) | |
{ | |
$time = (array)$entitiy; | |
$time = array_filter($time, function ($item) { | |
return !in_array($item, ['00:00:00', '0:00:00']); | |
}); | |
$begin = Carbon::createFromFormat('H:i:s', '00:00:00'); | |
$end = clone $begin; | |
foreach ($time as $element) { |
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
function phpDfBot() { | |
try { | |
var threads = GmailApp.search("(list:[email protected] OR list:[email protected] OR to:[email protected] OR to:[email protected] OR to:[email protected]) AND (subject:((desenvolvedor OR programador OR developer OR analista OR php OR web OR arquiteto OR dba OR suporte)) OR (desenvolvedor OR programador OR developer OR analista OR php OR web OR arquiteto)) is:unread", 0, 25); | |
Logger.log(threads.length); | |
for (var key in threads) { | |
var thread = threads[key]; | |
var messages = thread.getMessages(); | |
var label = GmailApp.getUserLabelByName("Não lidas"); | |
var pattern = /<img.*src="([^"]*)"[^>]*>/; | |
var payload = {}; |
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
#!/usr/bin/env bash | |
# screenFetch - a CLI Bash script to show system/theme info in screenshots | |
# Copyright (c) 2010-2015 Brett Bohnenkamper <[email protected]> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |