Skip to content

Instantly share code, notes, and snippets.

View wilsonvetdev's full-sized avatar
🏠
Working from home

Wilson Ng wilsonvetdev

🏠
Working from home
View GitHub Profile
import React from 'react'
import PropTypes from 'prop-types'
function Stats(props) {
return(
<table className="stats">
<tbody>
<tr>
<td>Players:</td>
import React from 'react'
import PropTypes from 'prop-types'
import Counter from './Counter'
import Icon from './Icon'
class Player extends React.PureComponent {
static propTypes = {
handleRemovePlayer: PropTypes.func.isRequired,
changeScore: PropTypes.func.isRequired,
-- This is the first query:
SELECT DISTINCT year from population_years;
-- Add your additional queries below:
SELECT country, population, year
FROM population_years
WHERE country = 'Gabon'
ORDER BY population DESC;
@wilsonvetdev
wilsonvetdev / ReadMe.md
Last active August 27, 2019 17:47 — forked from mattkellough/ReadMe.md
Activity for students to practice creating before and after filters

#Before and After Filters

##Instructions

  1. Fork the code from the following Gist.
  2. Create your own Gist with a refactored version of this users controller using filters(before_action, and after_action)
  3. Submit the Gist of your refactored code in the prompt on Goodmeasure week 5
  4. Good Luck!
// - Change the background color of box1
document.getElementById("box1").style.background = "#FFF0D5"
// - Set the font size in box1s to 44px
document.querySelector("#box1s p").style.fontSize= "44px"
// - Shrink box2 by half
document.getElementById("box2").style.width = "138px"
document.getElementById("box2").style.height = "113px"
// - Double the size of box2s
document.getElementById("box2s").style.width = "552px"
document.getElementById("box2s").style.height = "452px"