Work with engineers from another discipline to build a polished application for sharing links
As a user, I want to be able to
- save links that seem interesting
- see links that I've saved in the past
function tickingPromise(seconds, value) { | |
return new Promise((resolve, reject) => { | |
let i = 0; | |
let timer = setInterval(() => { | |
i += 1 | |
console.log("Tick", i) | |
if (i == seconds) { | |
resolve(value) | |
clearInterval(timer) | |
} |
http://requestb.in/1bhrpsc1
)method
and action
to your form: <form method="POST" action="http://requestb.in/1bhrpsc1">
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Counter</title> | |
<style type="text/css"> | |
h1 { | |
font-size: 80px; | |
color: rgb(0, 128, 0); | |
} |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module Main where |
{ "requests": [ | |
{ "created_at": "2015-09-13 14:00:26 -0400", "supplies": [ | |
{ "name": "Bandages", "response_id": 123, "response_type": "Delivery", "responded_at": "2015-11-10 14:05:38 -0500" }, | |
{ "name": "Tylenol", "response_id": 456, "response_type": "Denial", "responded_at": "2015-11-10 15:05:38 -0500" } | |
] }, | |
{ "created_at": "2015-11-06 14:01:07 -0500", "supplies": [ | |
{ "name": "Bandages", "response_id": 123, "response_type": "Pickup", "responded_at": "2015-11-10 14:05:38 -0500" }, | |
{ "name": "Something Else", "response_id": null, "response_type": null, "responded_at": null } | |
] } | |
]} |
Your development environment will continue to be available at lite.nitrous.io. Remember: you'll need to cd your_existing_project_name
before running rails commands like rails server
.
You're free to have multiple Rails apps on this; run rails new new_project_name
from the home directory (you can get there by typing cd ~
) if you want to start a new one.
RailsBridge has a great collection of step-by-step resources for installing Rails on various environments.
#!/usr/bin/ruby | |
# ^- tells the shell to run this script using _system_ ruby | |
# | |
# To use, either copy this file or save its contents into a new file | |
# (named e.g. `mic_check.rb`), and then run | |
# $ chmod +x ./mic_check.rb | |
# $ ./mic_check.rb | |
# | |
# Checks your system to ensure that it's setup as expected: | |
# * has developer tools, brew, a recent git and an editor |
#!/usr/bin/env ruby | |
def s n | |
Math.sqrt n | |
end | |
approxes = [ | |
"3", | |
"s(7 + s(6 + s(5)))", | |
"(63 * (17 + 15 * s(5))) / (25 * (7 + 15 * s(5)))", |
require 'httparty' | |
require 'pry' | |
ADDRESS = "app15863835@heroku.com" | |
class Heroku | |
include HTTParty | |
base_uri "https://api.heroku.com" | |
def self.get_token |