Skip to content

Instantly share code, notes, and snippets.

View albertoperdomo's full-sized avatar

Alberto Perdomo albertoperdomo

View GitHub Profile
@jexp
jexp / twitter_to_neo.rb
Last active August 29, 2015 14:04
Simple Ruby script to pull tweets from Twitter into Neo4j using Cypher
BEARER='...'
def load_tweets(query,since_id=nil,lang="en",page=1,rpp=100)
res=RestClient.get('https://api.twitter.com/1.1/search/tweets.json',
{:params=> {:q=>query, :lang=>lang,:count=>rpp,:result_type=>:recent,:since_id=>since_id},
:accept=>:json,
:Authorization => "Bearer #{BEARER}"})
puts "query '#{query}'\n since id #{since_id} result #{res.code}"
return [] unless res.code==200
data=JSON.parse(res.to_str)
@jexp
jexp / movies.cql
Created June 28, 2014 23:43
Neo4j Sample Database
create index on :Movie(title);
create index on :Person(name);
CREATE (TheMatrix:Movie {title:'The Matrix', released:1999, tagline:'Welcome to the Real World'})
CREATE (Keanu:Person {name:'Keanu Reeves', born:1964})
CREATE (Carrie:Person {name:'Carrie-Anne Moss', born:1967})
CREATE (Laurence:Person {name:'Laurence Fishburne', born:1961})
CREATE (Hugo:Person {name:'Hugo Weaving', born:1960})
CREATE (AndyW:Person {name:'Andy Wachowski', born:1967})
CREATE (LanaW:Person {name:'Lana Wachowski', born:1965})
@andreasronge
andreasronge / Gemfile
Last active August 29, 2015 14:00
Example how to deploy Neo4j.rb / neo4j-core app on heroku
source "https://rubygems.org"
ruby "2.1.1"
gem 'sinatra', '1.1.0'
gem 'neo4j-core', '3.0.0.alpha.11'
@pedrogimenez
pedrogimenez / iOS developer.md
Created April 22, 2014 10:56
iOS developer.md

Chicisimo is looking for an iOS developer

Remote work (or based in Valencia)

What's Chicisimo?

Chicisimo is a player in the social fashion space, and we are building tools to help girls decide what to wear.

We serve an amazing community of fashion enthusiasts who spend up to 1 hour a week on our site, with engagement ratios growing 30% month over month.

We have worldclass media and ecommerce partners, and have been featured on both fashion and tech press. Also, we are lucky to have amazing investors.

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 22, 2024 01:47
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@janogarcia
janogarcia / paymill_vs_paypal.md
Created December 10, 2012 10:09
Procesando tarjetas de crédito en tu webapp: Paymill VS PayPal

Procesando tarjetas de crédito en tu webapp: Paymill VS PayPal

TL;DR PayPal fatal. Paymill molamil.

Integración del proceso de checkout

PayPal no ofrece en España un método de pago que se integre por completo con tu webapp. La integración más básica Pago estándar consiste básicamente en redirigirte a PayPal e introducir ahí los datos de tu tarjeta. Es decir, la clásica página estándar de checkout de PayPal, con su típico look & feel.

La alternativa algo más avanzada, Pasarela integral, permite que en esa página externa de PayPal se pueda personalizar el logo... y algún que otro detalle (según PayPal "hasta 21 elementos gráficos").

@ayosec
ayosec / testmd.rb
Created November 27, 2012 13:57
Client for the GitHub Markdown API
require "json"
require "net/https"
content = ARGF.read
http = Net::HTTP.new("api.github.com", 443).tap do |h|
h.use_ssl = true
end
@albertohm
albertohm / .vimrc
Created March 14, 2012 10:05
My .vimrc
""PATHOGEN ------------------------------------
"call pathogen#runtime_append_all_bundles()
"call pathogen#helptags()
"filetype off " required!
"VUNDLE --------------------------------------
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
@jcasimir
jcasimir / build_developers.markdown
Created February 9, 2012 15:27
Build Developers

Build Developers

Brief

You cannot do it on your own. Whether you're buildings products or a consultancy, you need developers. You can't afford to outbid everyone else and, even if you do, another company will up the ante in six months. You can't rely on your network or universities to deliver fully ready Rails devs. Professional recruiters are no answer.

Your only real option is to build them. That's the situation LivingSocial faced, and in this session, we'll share lessons learned from the design, recruitment, and beginning months of Hungry Academy. Let's discuss:

  • Recruiting applicants
  • Evaluating aptitude