See #18. Beautify most of the expected tests.

I was unable to do Python and SQL, as I am having Python problems on my
laptop. Hopefully I will be able to figure this out soon.
This commit is contained in:
Glavin Wiechert 2014-12-28 02:38:06 -04:00
parent b147ecd9fa
commit f8e0e445ae
31 changed files with 1261 additions and 1263 deletions

View File

@ -1029,8 +1029,7 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter * adapter, u16 addr,
unsigned char msgbuf1[34];
int num = read_write == I2C_SMBUS_READ ? 2 : 1;
struct i2c_msg msg[2] = { { addr, flags, 1, msgbuf0 },
{ addr, flags | I2C_M_RD, 0, msgbuf1 }
};
{ addr, flags | I2C_M_RD, 0, msgbuf1 }};
int i;
msgbuf0[0] = command;

View File

@ -3,7 +3,8 @@ class Example
Example()
: member(0)
{}
{
}
int member;

View File

@ -1,13 +1,14 @@
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Shopping List for <%= @date.strftime('%A, %d %B %Y') %></title>
<title>Shopping List for
<%= @date.strftime('%A, %d %B %Y') %></title>
</head>
<body>
<h1>Shopping List for <%= @date.strftime('%A, %d %B %Y') %></h1>
<h1>Shopping List for
<%= @date.strftime('%A, %d %B %Y') %></h1>
<p>You need to buy:</p>
<ul>
<% for @item in @items %>

View File

@ -2,8 +2,11 @@
"indent_size": 2,
"indent_char": " ", // test
"indent_level": 0,
"indent_with_tabs": false, /* test */
"indent_with_tabs": false,
/* test */
"preserve_newlines": true,
"max_preserve_newlines": 2, /* test *
"max_preserve_newlines": 2,
/* test *
"jslint_happy": true
}
*/

View File

@ -2,7 +2,7 @@
line-height: @headerHeight;
display: block;
padding: 0px 15px;
padding: 0 15px;
font-size: 16px;
button {
font-size: 16px;
@ -27,7 +27,6 @@ text-decoration: none;
color: @white;
background-color: @green;
}
}
}

View File

@ -31,14 +31,14 @@
&:hover {
background-color: lighten(@black, 50%);
cursor: pointer;
}
}
&:active {
background-color: lighten(@black, 25%);
}
}
}
}
&.modal-2text {
.innerModal {
width: @container-width;
@ -49,24 +49,24 @@
border-radius: 4px;
h2 {
margin: 0px 0px 7px 0px;
}
margin: 0 0 7px;
}
div {
height: 70%;
overflow-y: scroll;
background-color: @white;
padding: 15px;
border-radius: 4px;
}
}
.large-cta {
margin-top: 25px;
}
}
}
}
}
#modal-video {
.innerModal {
left: 10%;
@ -78,6 +78,7 @@
width: 600px;
height: 340px;
margin: 2% auto;
}
//container
> div {
@ -90,78 +91,78 @@
&:hover {
background-color: fade(@white, 15%);
}
}
&:active {
background-color: fade(@white, 30%);
}
}
}
h3 {
color: @white;
font-size: 3em;
margin: 20px auto;
}
}
button {
margin-bottom: 50px;
}
}
}
}
}
.slideIn {
.animation(SlideIn, 0.5s);
}
}
@-webkit-keyframes SlideIn {
0% {
.transform(translateY(-100%));
}
}
100% {
.transform(translateY(0px));
}
}
}
.fadeIn {
display: block;
.animation(FadeIn, 0.5s);
}
}
@-webkit-keyframes FadeIn {
0% {
opacity: 0;
}
}
100% {
opacity: 1;
}
}
}
.slideOut {
.animation(SlideOut, 0.5s);
}
}
@-webkit-keyframes SlideOut {
0% {
.transform(translateY(0%));
}
}
100% {
.transform(translateY(-100%));
}
}
}
.fadeOut {
.animation(FadeOut, 0.5s);
}
}
@-webkit-keyframes FadeOut {
0% {
opacity: 1;
}
}
100% {
opacity: 0;
display: none;

View File

@ -1,9 +1,14 @@
// Breaks (fixed now)
.mixin(@variable, @anotherVariable) {
}
// Works
.mixin(@variable; @anotherVariable) {
}
// Ok
.mixin(@variable) {
}

View File

@ -1,20 +1,17 @@
section#photo-details {
width: 1140px;
margin: 60px auto 70px auto;
}
margin: 60px auto 70px;
}
div.photo-view {
text-align: center;
figure {
box-shadow: 0 0 3px 1px rgba(0,0,0,0.75)
;
box-shadow: 0 0 3px 1px rgba(0,0,0,0.75);
display: inline-block;
margin: 0 0 60px;
padding
: 0;
padding: 0;
img {
display: block;
}
}
}

View File

@ -4,4 +4,4 @@
1. one
2. two
2. three
3. three

View File

@ -4,10 +4,12 @@
{{#items}}
{{#first}}
<li><strong>{{name}}</strong></li>
<li><strong>{{name}}</strong>
</li>
{{/first}}
{{#link}}
<li><a href="{{url}}">{{name}}</a></li>
<li><a href="{{url}}">{{name}}</a>
</li>
{{/link}}
{{/items}}

View File

@ -1,20 +1,17 @@
<?php
$hello = "world";
if (!isset($_SESSION)) session_start();
require_once ("sql.req.php");
// friend requests
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="notifications.php">';
if ($num>0) { echo '<i class="fa fa-star white"></i>';
}else { echo '<i class="fa fa-star-o"></i>'; }
if ($num > 0) {
echo '<i class="fa fa-star white"></i>';
} else {
echo '<i class="fa fa-star-o"></i>';
}
echo '</a>';
// new messages
$q = $mysqli->query("");
$num = $q->num_rows;
@ -25,8 +22,4 @@ echo '<i class="fa fa-envelope white"></i>';
echo '<i class="fa fa-envelope-o"></i>';
}
echo '</a>';
?>

View File

@ -1,4 +1,5 @@
<?php
function add($a, $b) {
return $a +$b; }
return $a + $b;
}
echo add(1, 2);

View File

@ -1,19 +1,13 @@
<?php
class Date
{
class Date {
const FORMAT_FULL = 'full';
const FORMAT_LONG = 'long';
const FORMAT_MEDIUM = 'medium';
const FORMAT_SHORT = 'short';
public static function formatDate($time, $format)
{
if(!$time || $time == null)
{
public static function formatDate($time, $format) {
if (!$time || $time == null) {
return '';
}
return $time;
}
}

View File

@ -1,4 +1,6 @@
.example() {
.base-apple(); // Sets base apple color to red
.apple-color(@color-green); // Sets apple color to green
.base-apple();
// Sets base apple color to red
.apple-color(@color-green);
// Sets apple color to green
}