Skip to content

Instantly share code, notes, and snippets.

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

Fernando Oliveira nandooliveira

🏠
Working from home
View GitHub Profile
02-16 17:29:20.413 3616-3616/br.com.ideenbox.easydoctor E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: br.com.ideenbox.easydoctor, PID: 3616
java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.ideenbox.easydoctor/br.com.ideenbox.easydoctor.activities.OfficeDetailsActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@18ab25c9: Unmarshalling unknown type code 7471202 at offset 23700
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2314)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2388)
at android.app.ActivityThread.access$800(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
{
"name": "Teste",
"id": 1,
"description": "teste",
"elements": [
{
"kml": "<kml xmlns=\"http://earth.google.com/kml/2.0\"><Folder><name>OpenLayers export</name><description>Exported on Thu Jul 02 2015 16:58:53 GMT-0300 (BRT)</description><Placemark><name>OpenLayers_Feature_Vector_1320</name><description>No description available</description><LineString><coordinates>-29.59960937499877,-34.01727597403207 -25.90820312499882,-25.563390469721256 -33.730468749998685,-16.97393425372512 -20.63476562499916,-13.583133586444252 -18.789062499998742,-30.97867872085573 -24.853515624998717,-37.92785167881798</coordinates></LineString></Placemark></Folder></kml>",
"name": null,
"description": null
},
{
"MDReqID": 9894272,
"Symbol": "BTCBRL",
"MsgType": "W",
"MDFullGrp": [{
"MDEntryPositionNo": 1,
"MDEntrySize": 76943850,
"MDEntryPx": 212500000000,
"MDEntryID": 1459029908931,
"MDEntryTime": "01:40:27",
@nandooliveira
nandooliveira / SOLID.markdown
Created April 30, 2017 17:08 — forked from emaraschio/SOLID.markdown
SOLID Principles with ruby examples

#SOLID Principles with ruby examples

##SRP - Single responsibility principle A class should have only a single responsibility.

Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.

##OCP - Open/closed principle Software entities should be open for extension, but closed for modification.

@nandooliveira
nandooliveira / jsconfar_2014.markdown
Created April 30, 2017 17:10 — forked from emaraschio/jsconfar_2014.markdown
My notes about JS Conf Arg 2014
@nandooliveira
nandooliveira / Ruby Test Info
Created April 30, 2017 17:11 — forked from emaraschio/Ruby Test Info
A few links about Testing with Ruby
Libraries:
http://cukes.info/
http://jnicklas.github.io/capybara/
https://github.com/teampoltergeist/poltergeist
http://phantomjs.org/
How to:
http://www.railsonmaui.com/tips/rails/capybara-phantomjs-poltergeist-rspec-rails-tips.html
https://github.com/teampoltergeist/poltergeist#installing-phantomjs
@nandooliveira
nandooliveira / rails.rb
Created May 10, 2017 15:47
Use SSL in Rails development. First: to create a local SSL certificate and start a SSL webserver checkout *shell.sh*. Second: to configure Rails checkout *rails.rb*
# To enable SSL in Rails you could now simply use *force_ssl* in your
# ApplicationController but there is two more things to think about:
# In development our SSL webserver is running on port 3001 so we would
# actually need to use *force_ssl port: 3001* but then this wouldn't
# work for production.
# Also there is a good chance you might not always want to use SSL in development
# so it would be nice if we could just enable or disable SSL in the config.
# To make all this work first copy the file *ssl_with_configured_port.rb* to
# your *lib* directory. Second to enable SSL add *config.use_ssl = true*
@nandooliveira
nandooliveira / importacao_em_massa.md
Last active January 7, 2019 15:56
Importação de Alunos em Massa

Existem duas formas de enviar um convite em massa.

1. O convite em massa é feito através de um arquivo .csv que deve conter as informações obedecendo a seguinte sequência:

  • Nome
  • Sobrenome
  • ID do Produto
  • E-mail do aluno

Exemplo:

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: