Skip to content

Instantly share code, notes, and snippets.

View ericdouglas's full-sized avatar

Eric Douglas ericdouglas

View GitHub Profile
@ericdouglas
ericdouglas / gist:9092807
Created February 19, 2014 14:08
Flow Opposite - HTML
<div class="container">
<div class="row clearfix">
<div class="column half flow-opposite">
<!-- Your Content-->
</div>
<div class="column half">
<!-- Your Content-->
</div>
</div>
</div>
@ericdouglas
ericdouglas / gist:9092850
Created February 19, 2014 14:10
Flow Opposite - CSS
@media (min-width: 40rem) {
.column.flow-opposite {
float: right;
}
}
@ericdouglas
ericdouglas / gist:9092851
Created February 19, 2014 14:10
Flow Opposite - Stylus
@media (min-width: 40rem)
.column.flow-opposite
float right
@ericdouglas
ericdouglas / spec-mult.js
Created February 25, 2014 23:18
Test jasmine article
describe('função que multiplica dois números', function () {
var mult = multiplicaDoisNumeros;
it('verifica se estamos multiplicando corretamente', function () {
expect( mult ).toBeDefined();
expect( mult( 3, 7 ) ).toBe( 21 );
});
@ericdouglas
ericdouglas / mult.js
Created February 25, 2014 23:19
Function to test - article
function multiplicaDoisNumeros () {
return 21;
}
@ericdouglas
ericdouglas / mult.js
Created February 25, 2014 23:19
Function to test - article
function multiplicaDoisNumeros ( valor1, valor2 ) {
return valor1 * valor2;
}
@ericdouglas
ericdouglas / euler.js
Created March 2, 2014 19:09
Project Euler - impAprendaJS Semana 02 =D
var
count = 1,
limit = 1000,
sum = 0;
for (; count < limit; count += 1) {
if (count % 3 === 0 || count % 5 === 0) {
sum += count;
}
}
@ericdouglas
ericdouglas / 01-binding.html
Created March 2, 2014 23:24
Egghead - 01.Binding
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>01 - Binding</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/css/foundation.css">
</head>
<body>
<div ng-app>
@ericdouglas
ericdouglas / 02-controllers.html
Created March 2, 2014 23:42
Egghead - 02.Controllers
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>02 - Controllers</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/css/foundation.css">
<script src="js/main.js"></script>
</head>
<body ng-app>
@ericdouglas
ericdouglas / 03-dot.html
Last active August 29, 2015 13:56
Egghead - 03.Dot
<!doctype html>
<html>
<head>
<title>03 - Dot</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/css/foundation.css">
</head>
<body>
<div ng-app>