I hereby claim:
- I am radubogdan on github.
- I am radubogdan (https://keybase.io/radubogdan) on keybase.
- I have a public key ASCtFlow6ErshL1_k_xaf5NwBWRPy_LMMtzt8EWvJ103QAo
To claim this, I am signing this object:
?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) |
require 'mechanize' | |
base = 'https://graph.facebook.com/v2.3/' | |
route = 'me/feed?since=06.04.2015' | |
access_token = {'access_token' => ENV['ACCESS_TOKEN']} | |
variations = %w(happy bday birthday mulți multi ani trăiești traiesti) | |
agent = Mechanize.new | |
response = JSON.parse(agent.get(base + route, access_token).body) |
#!/usr/bin/env bash | |
# Use prozicerisiverbatori.ro in terminal | |
# Put this script in /usr/local/bin and make it +x | |
# | |
# Example of output with cowsay: | |
# $ dada | cowsay | |
# _________________________________________ | |
# / Cu obrazul gros și semeț și cată-le \ | |
# \ și încălțare. / | |
# ----------------------------------------- |
I hereby claim:
To claim this, I am signing this object:
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
class Attachment < ActiveRecord::Base | |
mount_uploader :attachment, AttachmentUploader | |
# Associations | |
belongs_to :attached_item, polymorphic: true | |
# Validations | |
validates_presence_of :attachment |