Skip to content

Instantly share code, notes, and snippets.

View clodo's full-sized avatar

Claudio Juan Bidau clodo

View GitHub Profile
@clodo
clodo / gist:6097055
Created July 28, 2013 02:09
Franky v1
#include <MotorShield.h>
MS_DCMotor motorA(MOTOR_A);
MS_DCMotor motorB(MOTOR_B);
const int buttonFordwardMotorAPin = 4;
const int buttonBackwardMotorAPin = 5;
const int buttonFordwardMotorBPin = 6;
const int buttonBackwardMotorBPin = 7;
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 257, in error_router
return self.handle_error(e)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
@clodo
clodo / gist:52cb1f3989c2cb03c7033018257dfdbf
Last active January 13, 2017 15:22
Agile in Corporate books
Reinventing Organizations - Frederic Laloux
Lean Enterprise - Jez Humble, Joanne Molesky, Barry O'Reilly
Organize for Complexity - Niels Pflaeging
The DevOps Handbook - Gene Kim, John Willis, Patrick Debois, Jez Humble
Agile IT Organization Design - Sriram Narayan
It's your ship - D. Michael Abrashoff
Agile Software Development with Distributed Teams - Jutta Eckstein
Agile Software Development in the Large: Diving Into the Deep - Jutta Eckstein
No Excuses Management - T. J. Rogers of Cypress Semiconductor
The Enterprise and Scrum - Ken Schwaber
version: '2'
services:
mysql:
image: mysql:5.7
environment:
- MYSQL_DATABASE=api
- MYSQL_USER=bridge
- MYSQL_PASSWORD=bridge
- MYSQL_ROOT_PASSWORD=root
ports:
$ docker images
$ docker ps -l -a
$ docker rm <container>
$ docker rmi <image>
$ docker logs -f nostalgic_morse
$ docker port nostalgic_morse
$ docker top nostalgic_morse
$ docker-compose up --build
$ docker-compose build <container>
{
"objects": [
{
"ad": {
"ad_id": "601364",
"ad_system_type": "Acudeo Compatible",
"ad_system_version": null,
"ad_title": "VAST 2.0 Instream Test 1",
"description": "VAST 2.0 Instream Test 1",
"error_uri": "http://myErrorURL/error",
[
{
"ad": {
"ad_id": "ad_id",
"ad_system_type": "Acudeo Compatible",
"ad_system_version": "ad_system_version",
"ad_title": "Ad Title",
"description": "Ad Description",
"error_uri": "http://creatives.example.com/videoAds/error",
"extensions": [
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
@clodo
clodo / gist:246f72a6308294d4804e0ce16a4de90a
Created April 27, 2017 14:01
Delete all docker containers and images
# Delete every Docker containers
# Must be run first because images are attached to containers
docker rm -f $(docker ps -a -q)
# Delete every Docker image
docker rmi -f $(docker images -q)
@clodo
clodo / poc.py
Last active January 6, 2019 17:54
Python: Strategy + Simple Factory
class InvalidEventTypeError(Exception):
def __init__(self, message):
self.message = message
class Event:
def __init__(self, type, auction_id):
self.type = type
self.auction_id = auction_id