Skip to content

Instantly share code, notes, and snippets.

View ceritium's full-sized avatar
🏠
Working from home

Jose Galisteo ceritium

🏠
Working from home
View GitHub Profile
@ceritium
ceritium / gist:1345439
Created November 7, 2011 16:28
Hábitos al programar

Esto es un listado de pregunta a incluir en una encuesta, no hace falta que las respondáis ahora, luego crearé un formulario en google, lo que si podéis hacer es añadir vuestras preguntas.

¿Sueles maldecir mientras programas?

  • No
  • A veces cuando algo se me atasca y entro en modo berserker.
  • Continuamente.

¿Escuchas música mientras programas?

@ceritium
ceritium / gist:1373201
Created November 17, 2011 14:01
Gemfile
source 'http://rubygems.org'
gem 'rails', '3.1.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'haml-rails', '>= 0.3.4'
gem 'formtastic', '2.0.0.rc1'
@ceritium
ceritium / gist:1408303
Created November 30, 2011 07:07
ejemplo
# create
def create
@item = Item.create(params[:item])
respond_to do |format|
format.js
end
end
# create.js.erb
$("#my-form").replaceWith('<%= escape_javascript(render "form", item: @item)%>')
@ceritium
ceritium / gist:1704108
Created January 30, 2012 12:15
Freelance

Hola, buscamos un freelance para posibles trabajos eventuales con conocimientos de diseño web.

Es importante que sea capaz de llevar ese diseño a html y css, no nos sirve de nada un diseño imposible de llevar a la web.

Valoramos mucho que conozca a nivel de frontend Rails, cosas como SASS y HAML. Sería la repera si además conoces git y estás acostumbrado a trabajar con la consola.

No esperamos que nos envíes un curriculum, preferimos que nos mandes enlaces de proyectos en los que has trabajado, portafolios, tu blog, cuentas linkedin o github, etc.

Contáctanos en: [email protected]

# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 8)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true
.gmap img{
max-width: none;
}
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
{"apiVersion":1,"swaggerVersion":1.2,"basePath":"https://api.cardstreams.io","description":"Cardstreams v1 API","resourcePath":"/streams","produces":["application/json"],"consumes":["application/json"],"apis":[{"path":"/v1/streams","operations":[{"method":"GET","summary":"Retrieve all Streams","notes":"Returns a list of all Streams for a given app.","type":"array","items":{"$ref":"Stream"},"nickname":"getStreams","parameters":[{"name":"X-Cardstreams-AppId","description":"The generated Application ID","type":"string","threescale_name":"app_ids","paramType":"header","required":false},{"name":"X-Cardstreams-AppKey","description":"The generated Application Key","threescale_name":"app_keys","type":"string","paramType":"header","required":false},{"name":"Authorization","description":"Authorization bearer token for access","type":"string","paramType":"header","required":false}],"responseMessages":[{"code":200,"message":"OK","responseModel":"Stream"}]},{"method":"POST","summary":"Create a new Stream.","notes":"Create
{
"links": {
"self": "http://example.com/posts",
"next": "http://example.com/posts?page[offset]=2",
"last": "http://example.com/posts?page[offset]=10"
},
"data": [{
"type": "posts",
"id": "1",
"attributes": {
@ceritium
ceritium / gist:ca2df640d7f3fc3f2c6b
Created October 5, 2015 18:56
reddit for swaggergo
https://www.reddit.com/r/WebAPIs/search?q=developer&sort=relevance&t=all
https://www.reddit.com/r/itglue/
https://www.reddit.com/r/json/
https://www.reddit.com/r/webdev/
https://www.reddit.com/r/api/