Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #encoding: utf-8 | |
| module M3nd3s | |
| def me_ajuda! | |
| "NÃO" | |
| end | |
| end | 
| # Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
| # Este arquivo deve ser colocado em config/locales/devise.pt-BR.yml | |
| pt-BR: | |
| devise: | |
| confirmations: | |
| confirmed: "Sua conta foi confirmada com sucesso." | |
| send_instructions: "Você receberá um email para confirmar sua conta em alguns minutis." | |
| send_paranoid_instructions: "Caso seu endereço de email já exista em nossa base, você receberá um email com instruções sobre como ativar sua conta." | |
| failure: | 
Java uses static, declared typing:
String hello = "Hello, World!";
List<String> phrases = new ArrayList<String>;
phrases.add(hello);
phrases.add(null);
phrases.add(123); // Compile error! Not a string.| #gem install rb-libsvm | |
| require 'libsvm' | |
| class Predictor | |
| def initialize | |
| parameter = Libsvm::SvmParameter.new | |
| parameter.cache_size = 3 # in megabytes | 
| require 'classifier' | |
| robot_overlord = Classifier::Bayes.new 'hilton', 'franklin' | |
| robot_overlord.train_hilton("The only rule is don't be boring and dress cute wherever you go. Life is too short to blend in.") | |
| robot_overlord.train_hilton("The way I see it, you should live everyday like its your birthday.") | |
| robot_overlord.train_hilton("No matter what a woman looks like, if she's confident, she's sexy.") | |
| robot_overlord.train_hilton("I'd imagine my wedding as a fairy tale... huge, beautiful and white.") | |
| robot_overlord.train_hilton("There's nobody in the world like me. I think every decade has an iconic blonde, like Marilyn Monroe or Princess Diana and, right now, I'm that icon.") | |
| robot_overlord.train_hilton("Some girls are just born with glitter in their veins.") | 
| http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query | |
| http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails | |
| #payload: [{"kind"=>"person"}] | |
| Segment.where("payload @> ?", [{kind: "person"}].to_json) | |
| #data: {"interest"=>["music", "movies", "programming"]} | |
| Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json) | |
| Segment.where("data #>> '{interest, 1}' = 'movies' ") | |
| Segment.where("jsonb_array_length(data->'interest') > 1") | 
| # To have script anywhere, anytime, ever, everybody | |
| mkdir temp && cd temp | |
| # for linux 'amd64' architecture install those packages: | |
| sudo apt-get install libx11-6:i386 libpam0g:i386 libstdc++5:i386 lib32z1 lib32ncurses5 | |
| wget https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh | |
| sudo sh snx_install.sh | 
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |