assuming we have a create endpoint that has something like
def create
@candidate = Candidate.new(candidate_params)
@candidate.user_id = current_user.id
@candidate.save!
respond_to do |format|
assuming we have a create endpoint that has something like
def create
@candidate = Candidate.new(candidate_params)
@candidate.user_id = current_user.id
@candidate.save!
respond_to do |format|
require 'pry' | |
# get all file names | |
file_names = Dir.entries(".") | |
# .entries(".") is annoying as it will also return ".", ".." which will give us problems | |
complete_file_names = Dir.entries(".").select {|entry| File.file? entry } | |
# general logic | |
# |
<script src="https://use.typekit.net/avi1fqd.js"></script> | |
<script>try{Typekit.load({ async: true });}catch(e){}</script> | |
<script> | |
(function(d) { | |
var config = { | |
kitId: 'avi1fqd', | |
scriptTimeout: 3000, | |
async: true | |
}, | |
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s) |
def recursive_fib(n) | |
# code here | |
end | |
def iterative_fib(n) | |
# more code here | |
end | |
recursive_fib(5) == ? # a lightweight 'spec'... |
brew install rbenv
brew install git
Slightly above or on the heart, https://dl.dropboxusercontent.com/u/12834645/peace_of_mind_sf_tshirts/POM%20logo.psd This file is somewhat low resolution, so we may need to get something better.
JKD General Logo https://commons.wikimedia.org/wiki/File:JKD.svg @juraj - there are two versions, one with fatter more complicated characters and one with thinner less complicated characters, we defer to your judgement about which to use, the above link has links to .svg vector art.
Join me as I conduct a live tutorial walk through of how to use Facebook's GraphQl/Relay tools to conduct high performance client side cache management in the context of a Ruby on Rails server, React client side stuff(z) and a declarative, non-RESTful, api.
We will be using a live application, source code and tutorials that I've written.
In order to answer the below, you should be able to talk in clear terms accurately about the below and | |
be able to write and run either in a browser or in a node terminal all the below. | |
- What is a function and how do you define it? | |
- How do you define and then at a later point call a function? | |
- What are arguments? | |
- What are some basic differences between string, objects and arrays? | |
- What is a return value? | |
- What is a key and what is a value in terms of a key value pair? | |
- What does index position in an array mean? |