Skip to content

Instantly share code, notes, and snippets.

******** HTML *********
<!-- CONTENT -->
<div data-role="content" data-theme="a">
<div id="content_center">
<div id="dashboard">
<a class="dashboard-icon" id="dashboard-profile" /></a>
<a href="#"><img src="/images/mobile/dashboard/tags_blue.png" class="dashboard-icon" id="dashboard-tags" /></a>
<a href="#"><img src="/images/mobile/dashboard/freunde_blue.png" class="dashboard-icon" id="dashboard-friends" /></a>
<a href="#"><img src="/images/mobile/dashboard/toprated_blue.png" class="dashboard-icon" id="dashboard-toprated" /></a>
<a href="#"><img src="/images/mobile/dashboard/guide_blue.png" class="dashboard-icon" id="dashboard-guide" /></a>
{
"title": "Kinetic Typography",
"features": [
{
"id": "info",
"name": "Information",
"icon": "info-sign",
"src": "data/lessons/kinetic-type.md"
},
{
// get lesson details
$http.get("data/lessons/" + $routeParams.lessonId +".json").success(function(data) {
$scope.lesson = data;
$scope.content = data.features[0].src;
$scope.resources = data.features[3].resources; // working but too static
// if (data.features.id == "resources") {
// $scope.resources = data.features.resources;
// console.log("init resources");
var express = require("express");
var product = require("./routes/api/product"),
category = require("./routes/api/category");
// create express server
var app = express();
// API
app.get("/product", product.findAll);
@fuhlig
fuhlig / Gruntfile.js
Created May 29, 2013 23:19
yeoman grunt foundation
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
@fuhlig
fuhlig / Gruntfile.js
Last active December 17, 2015 21:50
yeoman grunt express
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
var path = require('path');
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
@fuhlig
fuhlig / app.js
Created May 30, 2013 21:16
node express angular
'use strict';
// Declare app level module which depends on filters, and services
angular.module('shopApp', []).
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider.when('/shop', {templateUrl: 'views/shop.html', controller: 'ShopCtrl'});
$routeProvider.when('/product-list', {templateUrl: 'views/product-list.html', controller: 'ProductListCtrl'});
$routeProvider.when('/product-detail', {templateUrl: 'views/product-detail.html', controller: 'ProductDetailCtrl'});
$routeProvider.when('/category-list', {templateUrl: 'views/category-list.html', controller: 'CategoryListCtrl'});
$routeProvider.otherwise({redirectTo: '/'});
@fuhlig
fuhlig / index.html
Created July 9, 2013 22:02
angular-foundation
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
@fuhlig
fuhlig / pagedata.json
Created February 20, 2014 15:32
pageData sample
{
"name": "pagename",
"browser": [
{
"name": "chrome",
"engine": "webkit",
"version": "31",
"os": "windows",
"viewport": [
@fuhlig
fuhlig / SassMeister-input.scss
Created March 6, 2014 09:26
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
// .block {
// content: block;
// }
// .block__element {