Skip to content

Instantly share code, notes, and snippets.

//check in/out citi bike
// User object
// Bikes object
// Stations object
// Location object
const stations = [
{
id: 1,
location: "downtown bk"
text-shadow: #2f64af 1px 1px,#2f64af 2px 2px,#2f64af 3px 3px,#2f64af 4px 4px,#2f64af 5px 5px,#2f64af 6px 6px,#2f64af 7px 7px,#2f64af 8px 8px,#2f64af 9px 9px,#2f64af 10px 10px,#2f64af 11px 11px,#2f64af 12px 12px,#2f64af 13px 13px,#2f64af 14px 14px,#2f64af 15px 15px,#2f64af 16px 16px,#2f64af 17px 17px,#2f64af 18px 18px,#2f64af 19px 19px,#2f64af 20px 20px,#2f64af 21px 21px,#2f64af 22px 22px,#2f64af 23px 23px,#2f64af 24px 24px,#2f64af 25px 25px,#2f64af 26px 26px,#2f64af 27px 27px,#2f64af 28px 28px,#2f64af 29px 29px,#2f64af 30px 30px,#2f64af 31px 31px,#2f64af 32px 32px,#2f64af 33px 33px,#2f64af 34px 34px,#2f64af 35px 35px,#2f64af 36px 36px,#2f64af 37px 37px,#2f64af 38px 38px,#2f64af 39px 39px,#2f64af 40px 40px,#2f64af 41px 41px,#2f64af 42px 42px,#2f64af 43px 43px,#2f64af 44px 44px,#2f64af 45px 45px,#2f64af 46px 46px,#2f64af 47px 47px,#2f64af 48px 48px,#2f64af 49px 49px,#2f64af 50px 50px,#2f64af 51px 51px,#2f64af 52px 52px,#2f64af 53px 53px,#2f64af 54px 54px,#2f64af 55px 55px,#2f64af 56px 56px,#2f64af 57px 57px,#2f
array = ["cbnhnhnhh", "aaejnvn", "aeiouaiiou"]
array.to_s.scan(/\b[aeiou]+\b/)
sentence = <<-something
Steven likes the movies. Blake likes to ride his bike but hates movies.
Blake is taller than steven. Steven is a great teacher.
something
sentence = sentence.gsub(".", " ") #sub period for space
sentence = sentence.split(" ")
[] << sentence
sentence.detect {|x| sentence.count(x) > 1}
flatiron_school = {:teachers=>[{:name=>"steph"}, {:name=>"uzo"}, {:name=>"blake"}], :students => [{:name => "giancarlo", :grade => 100, :address => "bronx"},{:name => "jamie", :grade => 200, :address => "NJ"}]}
flatiron_school.each do |key, value|
value.each do |names|
puts names[:name]
end
end
array = (1..10).to_a
container = []
array.each do |x|
container << x if x.odd?
end
container[3]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Reverse</title>
<link rel="stylesheet" type="text/css" href="style.css">
<style id="jsbin-css">
* {
margin: 0;
padding: 0;
$(document).ready(function() {
$('#reverse').click(function() {
var comment = $('#input').val();
var rev_str = comment.split('').reverse().join('');
alert(rev_str);
});
});
def meth(a, b)
puts a + b
end
meth(3, 2)
puts "Hey Girl!"