Skip to content

Instantly share code, notes, and snippets.

View aitor's full-sized avatar
👊
Working!

Aitor García Rey aitor

👊
Working!
View GitHub Profile
@aitor
aitor / 20160307172445_change_paperclip_attachment_path.rb
Created November 20, 2018 11:47 — forked from 121onto/20160307172445_change_paperclip_attachment_path.rb
Example migration for changing paperclip storage path
class MoveAttachmentsToNewLocation < ActiveRecord::Migration
def initialize(name = self.class.name, version = nil)
access_key = Rails.application.secrets.g3_access_key_id
secret_key = Rails.application.secrets.g3_secret_access_key
storage = Fog::Storage::Google.new google_storage_access_key_id: access_key,
google_storage_secret_access_key: secret_key
@bucket_name = Rails.application.secrets.g3_bucket
@bucket = storage.directories.get(@bucket_name)
super(name, version)
@aitor
aitor / README.md
Last active August 3, 2016 22:55 — forked from syntagmatic/README.md
Nutrition Parallel Sets
@aitor
aitor / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

At the bottom of the heart of every human… there is something that goes on indomitably expecting, in the teeth of all experience of crimes committed, suffered, and witnessed, that good and not evil will be done to him. It is this above all that is sacred in every human being.

Simone Weil

As a global platform for creativity and self-expression, Tumblr is deeply committed to supporting and protecting freedom of speech. At the same time, we draw lines around a few narrowly defined but deeply important categories of content and behavior that jeopardize our users, threaten our infrastructure, and damage our community.

What Tumblr is for:

Tumblr celebrates creativity. We want you to express yourself freely and use Tumblr to reflect who you are, and what you love, think, and stand for. What Tumblr is not for:

  • Malicious Speech. Don't encourage violence or hatred on the basis of things like race, ethnic origin, religion, disability, gender, age, veteran status, or sexual orientation. We encourage you to dismantle negative speech through argument rather than censorship. We will, however, remove anything that is overtly malicious.

  • Harm to Minors. Be thoughtful when posting anything involving a minor. Don't post or solicit anything relating to minors that is sexually suggestive or violent. Don’

› heroku run script/console
Running `script/console` attached to terminal... up, run.5405
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: Operation timed out - connect(2) (Errno::ETIMEDOUT)
Backtrace: /Users/aitor/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `initialize'
/Users/aitor/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `open'
/Users/aitor/.heroku/client/lib/heroku/client/rendezvous.rb:40:in `block in start'
@aitor
aitor / gist:5933892
Last active June 13, 2020 15:49
Proposal for TEDxZaragoza 2013

Algorithms

  • Main topic: Algorithm based economies.
  • Estimated run time: 15 minutes.

Abstract

Stock market flash crashes. Time dilation. Dynamic pricing. Mass-customization of nonexistent products. Our world is becoming increasingly governed by algorithms.

An algorithm is a process or rules system automated by a computer program. Potentially very complex in behavior, these algorithms start with very simple instructions executed by the machine with the only limitations of its physical constrains, a set of constrains very different to ours.

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@aitor
aitor / css
Created February 27, 2013 20:16
/*
Syntax error: An @import loop has been found: /Users/aitor/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/zurb-foundation-3.2.5/lib/../scss/foundation/functions/modular-scale.scss imports itself
on line 3 of /Users/aitor/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/zurb-foundation-3.2.5/lib/../scss/foundation/functions/modular-scale.scss
from line 3 of /Users/aitor/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/zurb-foundation-3.2.5/lib/../scss/foundation/functions/modular-scale.scss
1: // Legacy support since modular scale
2: // used to reside directly within Foundation
3: @import "modular-scale";
Backtrace:
@aitor
aitor / gist:5029549
Last active December 14, 2015 04:39
Proposal for DareConf 2013 http://dareconf.com

Digital Legacies and Death

Primary theme: Vulnerability and courage

Talk description

I want to talk about Death.

If there is one thing that has caused fear in every living creature from dawn of history to present day is death. Fear and pain are the basis for our self-preservation instincts but accepting our own mortality is so hard that we've created a whole set of "immortality systems" -national identities, art, religion, work and social structures- to delude ourselves (cf. Ernest Becker) and forget we're mortal.