- What are some new features in HTML5 / CSS3?
- What are the differences of using
float
vsinline-block
? - Describe Floats and how they work in detail
- Explain differences between
inline
andinline-block
- Can you explain the differences between
em
,rem
,px
? - Explain
reset.css
vsnormalize.css
- How do
display: none
vsvisibility: hidden
differ? - What is the difference between classes and IDs in CSS?
This file contains 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
#!/bin/bash | |
## | |
# Modified version of https://gist.github.com/3680107 | |
# | |
# Tested for use on Mac OS X 10.7.5 with Bash 3.2.48(1)-release | |
# | |
# Old module needs to be in system/cms/modules and a single word (Ex: blogs not site_blogs) | |
## |
This file contains 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
<ul> | |
{{ pages:children id="1" include-children="true" }} | |
<li>{{ id }} - {{ url }} | |
{{ if children }} | |
<ul> | |
{{ children }} | |
<li>{{ id }} - {{ url }}</li> | |
{{ /children }} | |
</ul> | |
{{ endif }} |
This file contains 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
<?php | |
/** | |
* Used to run any after deploy tasks: | |
* - Migrate DB | |
* - Clear expired password reminder tokens | |
* - Clear caches | |
* - Remove any unwanted files from the server | |
*/ | |
$deploy_cleanup = function ($task) { |
The error was most likely caused by a brew upgrade
command that upgraded postgres and now no longer connects correctly.
You can follow the commands below but you will lose prior databases.
$ brew services stop postgres
$ cd /usr/local/var
$ ls
This file contains 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' | |
angular.module('app') | |
.service('houseService', function () { | |
this.houses = [ | |
{id: 1, name: 'Spacious two bedroom', address: '10 Main St'}, | |
] | |
this.seedHouses = function() { |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
nav {background: tomato} | |
</style> |
This file contains 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
// Challenge: Refactor the `render()` method with declare all variables at top | |
render() { | |
return ( | |
<li> | |
<div className="profile-card"> | |
<header className="profile-header" onClick={this.toggleClass}> | |
<img src={this.props.profile.image} alt={this.props.profile.name} /> | |
<h2>{this.props.profile.name}</h2> | |
</header> |
This file contains 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
Build the following triangle in code | |
* | |
* * | |
* * * | |
* * * * | |
* * * * * | |
We could call it with `printTriangle(5)` where `5` is the number of rows to make |
OlderNewer