Skip to content

Instantly share code, notes, and snippets.

View amarczew's full-sized avatar
💭
I may be slow to respond.

Alison Marczewski amarczew

💭
I may be slow to respond.
  • Belo Horizonte - MG, Brazil
View GitHub Profile
@amarczew
amarczew / AdwordsScript.js
Last active February 23, 2024 01:33 — forked from caseypage/AdwordsScript.js
This will automate setting custom parameters for your adwords tracking template at the campaign and adgroup level.
// Sample Tracking Template
// {lpurl}?utm_medium=adwords&utm_campaign={_campaign}&utm_source={_adgroup}&utm_term={keyword}
// This script will set custom parameters {_campaign} and {_adgroup} at the campaign and creative level respectively.
function main() {
///// Update Campaigns
// get all campaigns
var campaignSelector = AdsApp
.campaigns()
@amarczew
amarczew / guiabolso2csv.py
Created August 4, 2019 18:08
Baixar suas transações do guiabolso para um único arquivo csv ou xlsx.
'''
Requirements:
guiabolso2csv -- code below based on __main__.py file in this library
unicodecsv
click
requests
openpyxl
Example:
python guiabolso2csv.py --email seuemail@mail.com --year 2015 --month 01 --last-year 2019 --last-month 07 --unique-file
@amarczew
amarczew / ipython-config.sh
Created November 14, 2017 19:45
ipython - autoreload modules
ipython profile create
vim ~/.ipython/profile_default/ipython_config.py
# changes
c.InteractiveShellApp.extensions = ['autoreload']
c.InteractiveShellApp.exec_lines = ['%load_ext autoreload', '%autoreload 2']
@amarczew
amarczew / keras-conv2D.py
Last active November 12, 2016 16:12
Keras, Convolution2D: Wrong output shape
from keras.layers.convolutional import Convolution2D
from keras.models import Sequential
# apply a 3x3 convolution with 64 output filters on a 256x256 image:
model = Sequential()
model.add(Convolution2D(64, 3, 3, border_mode='same', input_shape=(3, 256, 256)))
# now model.output_shape == (None, 64, 256, 256)
print model.output_shape # == (None, 3, 256, 64)
# add a 3x3 convolution on top, with 32 output filters: