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
import os | |
from crewai import Agent, Task, Crew, Process | |
from crewai_tools import SerperDevTool | |
from langchain.agents import Tool | |
from langchain_community.tools import DuckDuckGoSearchRun | |
from langchain_anthropic import ChatAnthropic | |
from langchain_openai import ChatOpenAI | |
os.environ["ANTHROPIC_API_KEY"] = "YOUR_KEY" | |
#os.environ["OPENAI_API_KEY"] = "YOUR_KEY" |
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
{ | |
'Confinamento Básico': { | |
nome: 3271, | |
GMDKgD: 3271, | |
estagioNegocio: 3269, | |
precoVendaBruto: 3271, | |
dataD1Arracoamento: 3271, | |
valorDoGadoRCabeca: 3271, | |
custoOperacionalCabDia: 3271, | |
rendimentoDeCarcacaDoAbate: 3271, |
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(){ | |
if (typeof Object.defineProperty === 'function'){ | |
try{Object.defineProperty(Array.prototype,'sortBy',{value:sb}); }catch(e){} | |
} | |
if (!Array.prototype.sortBy) Array.prototype.sortBy = sb; | |
function sb(f){ | |
for (let i=this.length;i;){ | |
let o = this[--i]; | |
this[i] = [].concat(f.call(o,o,i),o); |
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
/** | |
Original Author: Caíque Araújo Spósito @kiqaps | |
Refactoring: Marcelo M. Fleury @marcelomf | |
*/ | |
class Runner { | |
constructor(functionPromise) { | |
this.functionPromise = functionPromise; | |
} |
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 onTrade(trade, is_preroll, cb) { | |
if (s.period && trade.time < s.period.time) { | |
return | |
} | |
var day = (new Date(trade.time)).getDate() | |
if (s.last_day && day !== s.last_day) { | |
s.day_count++ | |
} | |
s.last_day = day | |
if (!s.period) { |
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
const funcao1 = function(id){ | |
return {nome: "João", idade: 32, id: id} | |
} | |
const funcao2 = function(callback, id){ | |
setTimeout(function(){ | |
return callback({nome: "João", idade: 32, id: id}) | |
}, 3000) | |
} |
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
var retornaDadosSync = function(){ | |
return {nome: "marcelo", idade: 32} | |
} | |
var retornaDadosASync = function(callback){ | |
setTimeout(function(){ | |
return callback({nome: "marcelo", idade: 32}) | |
}, 3000) | |
} |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /home/marcelo/projetos/restful-orm/lumen/public; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name lumen.teste; | |
location ~ \.php$ { |
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
#!/bin/bash | |
# @author Marcelo Machado Fleury <marcelomf@gmail.com> | |
# @date 21/05/2015 | |
# Other tools: pimd mrouted xorp igmpproxy dnsmasq | |
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) | |
multicasts=( "239.255.255.250" "224.0.0.1" "224.0.0.2" "224.0.1.1" "224.0.0.9" "224.0.1.2" "224.0.0.0" "224.0.1.0" "224.0.2.0" "224.1.0.0" "224.2.0.0" "224.3.0.0" "224.5.0.0" "225.0.0.0" "232.0.0.0" "233.0.0.0" "233.252.0.0" "234.0.0.0" "239.0.0.0" ) | |
#echo $(basename "$0") | |
script_name=$(readlink -f $(dirname ${BASH_SOURCE[0]}))"/"$(basename "$(test -L "$0" && readlink "$0" || echo "$0")") |
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
#!/bin/bash | |
apt-get update && apt-get upgrade -y | |
apt-get -y install docker.io vim git firefox | |
apt-get -y install php5 ruby python3 nodejs gcc g++ clang golang make cmake build-essential python-dev exuberant-ctags sshm terminator wget lynx links curl | |
apt-get -y install python3-pip gem npm php-pear software-properties-common python3-software-properties | |
gem install bundler | |
apt-get -y install etherape wireshark nmap hping3 dsniff packit ettercap-common netcat tcpdump whois traceroute tcptraceroute | |
#apt-get -y install ffmpeg gstreamer0.10-ffmpeg | |
apt-get -y install flashplugin-installer openshot terminator gnupg2 tcplay vlc inkscape pencil pinta calibre thunderbird midori dia unrar conky keepass2 lm-sensors gedit cheese unrar p7zip-full libc-bin wine libav-tools freemind |
NewerOlder