Skip to content

Instantly share code, notes, and snippets.

@dimified
dimified / unit.spec.coffee
Last active April 18, 2016 22:39
Unit Tests
### global Foundation:false ###
'use strict'
define [
'jquery'
'app'
'angular'
'angular.mocks'
'use strict'
define [
'jquery'
'angular'
], ($, Angular) ->
###*
# Registry of directives
@dimified
dimified / burningHoursService.coffee
Created April 16, 2016 15:43
Service: BurningHours (Calculating burning hours related to ecoCalcLight project)
'use strict'
define [
'jquery'
'angular'
], ($, Angular) ->
###*
# Registry of burning hours service
# @namespace App.services.burningHoursSrvc
@dimified
dimified / messageService.coffee
Created April 16, 2016 15:42
Service: Messaging (Service for handling messages)
'use strict'
define [
'jquery'
'angular'
], ($, Angular) ->
###*
# Registry of message service
# @namespace App.services.messageSrvc
@dimified
dimified / kongcat.coffee
Created April 16, 2016 15:40
Module: Kongcat (Lightweight framework for localStorage objects)
'use strict'
define [
'jquery'
'angular'
], ($, Angular) ->
###*
# Registry of module kongcat
# @namespace App.kongcat
@dimified
dimified / server.js
Last active March 2, 2016 09:58
Simple HTTP server
var http = require('http'),
dispatcher = require('httpdispatcher'),
PORT = 3000;
dispatcher.onGet('/', function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Server running');
});
dispatcher.onGet('/json', function (req, res) {
@dimified
dimified / .eslintrc
Last active August 29, 2015 14:25
Eslint configuration template (.eslintrc)
// .eslintrc
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops