Skip to content

Instantly share code, notes, and snippets.

View capitantoto's full-sized avatar

Gonzalo Barrera Borla capitantoto

View GitHub Profile
1,2,3, 4 ,5
@capitantoto
capitantoto / pyproject.toml
Created December 20, 2023 16:07
pyodbc 4.0.39, no-binary, using poetry
[tool.poetry]
name = "testit"
version = "0.1.0"
description = ""
authors = ["Gonzalo Barrera Borla <gonzalobb@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.11"
dbt-sqlserver = "^1.4.3"
logloss = function(X, y, betas) {
sum(-log(1 + exp(X %*% betas))) + sum(y * (X %*% betas))
}
X = matrix(
c(
rep(1, n),
df$balance,
df$income
),
nrows=n,
{"v":"5.1.9","fr":59,"ip":0,"op":353,"w":710,"h":444,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"install2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":77,"s":[0],"e":[100]},{"t":129}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[355,222,0],"ix":2},"a":{"a":0,"k":[323,89,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"n":"0_1_0p333_0","t":130,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-183.309,10.333],[-183.69,10.5],[-183.69,-10.167],[-183.309,-10.334]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-183.309,10.333],[402.31,10.167],[402.31,-10.5],[-183.309,-10.334]],"c":true}]},{"t":225}],"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":4,"nm":"Merge Paths 1","mn":"ADBE Vector Filter -
@capitantoto
capitantoto / free-space-on-boot-disk.md
Created October 22, 2015 20:34 — forked from jbgo/free-space-on-boot-disk.md
Free up space on /boot disk (ubuntu)

Free disk space when /boot is full (Ubuntu)

TL;DR

dpkg -l linux-image*
uname -r
sudo apt-get remove linux-image-2.6.32-{21,37,38,39,40,41,42,43,44}-server
sudo apt-get autoremove
print "Este es un renglon de texto plano. Como va a ser otra cosa que no sea plana, si esta en una pantalla?"
1000.times do
print rand(2)
end
output = File.open("enrollment_infos_id_updates.sql", "w")
class Prospect < ReportingDB # ReportingDB hereda de ActiveRecord::Base y se conecta a sac_reporting
end
class EnrollmentInfo < ReportingDB
end
MARKETING_TAGS = ['mega_channel', 'source', 'campaign_medium', 'campaign_medium_version', 'fulfillment_code', 'marketing_code']