Skip to content

Instantly share code, notes, and snippets.

@jaseflow
jaseflow / flex.css
Created July 31, 2015 04:34
Flex BEM classes
.flex {
display: flex
}
.flex--centered {
justify-content: center;
}
.flex--aligned {
align-items: center;
[{
"title": "Sports Turf Management",
"code": "AHCTRF305A",
"modules": [{
"id": 1,
"title": "Repair sports turf",
"sections": [{
"id": 50,
"title": "Introduction",
"file": "intro.md",
<ion-view>
<ion-nav-title>
{{ section.title }}
<small>{{ title }}</small>
</ion-nav-title>
<ion-nav-buttons side="right">
<button class="button button-icon button-clear" ng-click="toggleFavourite()">
<i class="fa header__icon favourite" ng-class="isFavourited ? 'fa-star' : 'fa-star-o'"></i>
</button>
</ion-nav-buttons>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Components</title>
<script src="lib/handlebars/handlebars.runtime.min.js"></script>
<script src="js/templates.js"></script>
<link rel="stylesheet" id="stylesheet"/>
</head>
<body>
" Press ? for help
.. (up a dir)
</jcorbett/dev/exp-header/
▸ _config/
▸ _environments/
▸ img/
▸ node_modules/
▾ public/
▾ components/
[{
"title": "Sports Turf Management",
"code": "AHCTRF305A",
"modules": [{
"id": 1,
"title": "Repair sports turf",
"sections": [{
"id": 1,
"title": "Prepare for monitoring activities",
"file": "prepare-for-monitoring-activities.md"
'use strict';
app.controller('SectionCtrl', function($scope, $ionicModal) {
$scope.user = {
name: 'Jason Corbett',
activeCourse: 'Sports Turf Management',
activeCourseLevel: 'Certificate III',
activeCourseCode: 'AHC31310'
};
<ion-modal-view>
<ion-nav-bar>
<ion-nav-buttons side="right">
<button class="button button-clear button-positive" ng-click="closeModal($event)">Cancel</button>
</ion-nav-buttons>
</ion-nav-bar>
<ion-content class="has-header">
<div class="quiz island">
<div ng-repeat="questions in quiz">
<h2 class="quiz__question">
"student": {
"firstName": "Jason",
"lastName": "Corbett",
"courses": [
courses[1]
],
"activeCourse": courses[1],
"activeModule": module[2],
"completedModules": [module[0], module[1]]
"uploads": {
var psi = require('psi');
var testUrl = 'http://www.expedia.com/Cancun-Hotels.d179995.Travel-Guide-Hotels?psislp=1';
module.exports = {
getScore: function() {
psi(testUrl, function (err, data) {
console.log(data.score);
});
}
};