hi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------> users_controller.rb <-------------------------------------------- | |
class UsersController < ApplicationController | |
before_action :logged_in_user, only: [:create, :destroy] | |
def edit | |
set_user | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './game.rb' | |
describe Game do | |
let(:game) { Game.new } | |
context 'when starting a new game' do | |
it 'sets score to zero' do | |
expect(game.score).to eq(0) | |
end | |
it 'starts with no players' do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './game.rb' | |
describe Game do | |
it 'sets score to zero when starting a new game' do | |
game = Game.new | |
expect(game.score).to eq(0) | |
end | |
it 'starts with no players when starting a new game' do | |
game = Game.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Box Model Model</title> | |
<style> | |
body { | |
padding-top: 80px; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Javascript | |
Javascript for Cats http://jsforcats.com/ | |
### Node | |
NodeSchool http://nodeschool.io/ | |
The Art of Node https://github.com/maxogden/art-of-node#the-art-of-node | |
Free Code Camp https://www.freecodecamp.com/ | |
https://psdtowp.net/learn-javascript.html?utm_source=javascriptweekly&utm_medium=email |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. \dt | |
2. \du | |
3. SELECT * FROM owners; | |
4. SELECT name FROM owners; | |
5. SELECT age FROM owners ORDER BY age ASC; | |
6. SELECT * FROM owners WHERE name = 'Donald'; | |
7. SELECT * FROM owners WHERE age > 30; | |
8. SELECT * FROM owners WHERE name LIKE 'E%'; | |
9. INSERT INTO owners (name, age) VALUES ('John',33); | |
10. INSERT INTO owners (name, age) VALUES ('Jane',43); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARN engine [email protected]: wanted: {"node":"^0.10.3 || ^0.12.0"} (current: {"node":"4.2.6","npm":"2.14.12"}) | |
- | |
> [email protected] install /Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli/node_modules/usb | |
> node-pre-gyp install --fallback-to-build | |
[usb] Success: "/Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node" is installed via remote | |
/Users/Jadam/.nvm/versions/node/v4.2.6/bin/t2 -> /Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli/bin/tessel-2.js | |
> [email protected] postinstall /Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli | |
> t2 install-drivers || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
const server = 'https://galvanize-todos.herokuapp.com/is-persons'; | |
const app = angular.module('todoApp'); | |
app.controller('PeopleCtrl', PeopleCtrl); | |
app.controller('PersonCtrl', PersonCtrl); | |
app.controller('TodoListCtrl', TodoListCtrl); |
OlderNewer