This is a kick-off roadmap for the lead-developer, in charge of setup / deployment / collaboration.
Create the project locally and on Github
$ rails new YOUR_APP_NAME -T --database=postgresql
$ cd YOUR_APP_NAME
$ git init
# Very precious debug gems :) | |
gem 'binding_of_caller', group: :development | |
gem 'better_errors', group: :development |
body { | |
text-align: center; | |
padding: 50px; | |
font-size: 20px; | |
} | |
ul { | |
list-style: none; | |
} | |
ul li { | |
cursor: pointer; |
$(document).ready(function(){ | |
$("#submit").on("click", function(){ | |
// get the username from input | |
// make a GET request to the API | |
// inject the response in the page | |
var userName = $("#username").val(); |
$(document).ready(function(){ | |
$("#submit").on("click", function(){ | |
var content = $("#content").val(); | |
var gistData = { | |
"description": "Stupid gist", | |
"public": true, | |
"files": { |
require 'open-uri' | |
require 'nokogiri' | |
puts "Quelle catégorie t'intéresse?" | |
category = gets.chomp | |
url = "https://www.etsy.com/search?q=#{category}" | |
file = open(url) | |
html_text = file.read |
img-rounded
replaced by rounded-circle
hidden
replaced by invisible
(add display: none;
on .invisible
in the CSS if you need)hidden-xs
is replaced by hidden-xs-down
hidden-sm hidden-md hidden-lg
is equivalent to hidden-sm-up
col-xs-6
is now col-6
col-md-offset-2
becomes offset-md-2
require "open-uri" | |
require "nokogiri" | |
url = "http://www.timeout.com/london/bars-and-pubs/the-100-best-bars-and-pubs-in-london" | |
html_file = open(url) | |
doc = Nokogiri::HTML(html_file) | |
doc.search(".feature-item").each do |bar| | |
p bar.search("img")[0].attr("src") | |
p bar.search("h3 a")[0].text |
require_relative "utilities" | |
require_relative "scraping" | |
puts "Welcome on Wishly!" | |
wishlist = [{name: "Macbook", checked: true}, {name: "Iphone", checked: false}] | |
while true | |
display_menu | |
action = gets.chomp |