One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<!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> |
# 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 |
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") |
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.") |
#gem install rb-libsvm | |
require 'libsvm' | |
class Predictor | |
def initialize | |
parameter = Libsvm::SvmParameter.new | |
parameter.cache_size = 3 # in megabytes |
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.
# 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: |
#encoding: utf-8 | |
module M3nd3s | |
def me_ajuda! | |
"NÃO" | |
end | |
end |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.