Skip to content

Instantly share code, notes, and snippets.

View vsdsantos's full-sized avatar
🚀

Victor vsdsantos

🚀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vsdsantos on github.
  • I am victorsds (https://keybase.io/victorsds) on keybase.
  • I have a public key ASD_9SrIMsoPtZxM3d5ZCD_dE-jJQi6JowhLSJPZa-tO9go

To claim this, I am signing this object:

function gradient_descent(f, ∇f, x0, ϵ)
e = ϵ
n = 1
t = 1
x_n = x0
while abs(e) >= ϵ
f_n = f(x_n)
grad = ∇f(x_n) # vetor do gradiente
@vsdsantos
vsdsantos / deploy.sh
Last active July 30, 2020 17:32
Clone repository and deploy on Docker Container
#! /bin/bash
GIT_USERNAME=
REPOSITORY=
BRANCH="master"
GIT_PROTOCOL="https"
NAME=
TAG="latest"
while [ "$1" != "" ]; do
import csv
import psycopg2
from psycopg2.extras import execute_batch
host = ''
port = ''
db = ''
user = ''
password = ''
[
{ label: 'Past hour', value: 'now 1-H' },
{ label: 'Past 4 hours', value: 'now 4-H' },
{ label: 'Past day', value: 'now 1-d' },
{ label: 'Past 7 days', value: 'now 7-d' },
{ label: 'Past 30 days', value: 'today 1-m' },
{ label: 'Past 90 days', value: 'today 3-m' },
{ label: 'Past 12 months', value: 'today 12-m' },
{ label: 'Past 5 years', value: 'today 5-y' },
]

Keybase proof

I hereby claim:

  • I am zuckberj on github.
  • I am victorsantos (https://keybase.io/victorsantos) on keybase.
  • I have a public key ASDz1fazWNLAw_N2osWNirJlLX0C2GcgMjaZrWiO-WxV_go

To claim this, I am signing this object:

#include <iostream>
#include <time.h>
#include <stdlib.h>
using namespace std;
class Unity {
int value; // vai de -1 a 1
public:
void init () {
bundle exec ruby bot.rb
bot created
(JSON::ParserError)bies/ruby-2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `parse': 784: unexpected token at '<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.9.1</center>
</body>
</html>
'
@vsdsantos
vsdsantos / blueman-applet-log-1.log
Last active April 28, 2016 03:54
Log of blueman-applet. Tried to connect audio source.
blueman-applet version 2.0.4 starting
Stale PID, overwriting
_________
Load (/usr/lib/python3/dist-packages/blueman/main/PluginManager.py:60)
['PPPSupport', 'TransferService', 'StatusIcon', 'Networking', 'ExitItem', 'StandardItems', 'NetUsage', 'GameControllerWakelock', 'ShowConnected', 'NMDUNSupport', 'PowerManager', 'DBusService', 'RecentConns', 'Headset', 'KillSwitch', 'DhcpClient', 'SerialManager', 'Menu', 'AppIndicator', 'AuthAgent', 'NMPANSupport', 'DiscvManager']
_________
get_interface_version (/usr/lib/python3/dist-packages/blueman/bluez/BlueZInterface.py:13)
Detected BlueZ 5
/usr/lib/python3/dist-packages/blueman/plugins/applet/AppIndicator.py:8: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
from gi.repository import AppIndicator3 as girAppIndicator
<!DOCTYPE html>
<html>
<head>
<title>Thelgrains</title>
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="kv4n+ruYwiO3X17NJhA1iScg0vQ8Tn0LXlK77y4Hp3Bn7K3T4SuYybiJv6JEzE9sIstBtunuyjXc/Na+ca6lWg==" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Carregar possíveis fontes -->