Skip to content

Instantly share code, notes, and snippets.

Jesper Wøldiche woeldiche

Block or report user

Report or block woeldiche

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View areas.js
Data.area = new Map([
["None", 0],
["Cone 1.5 m, 30 grader", {diff: 3}],
["Cone 2.5 m, 30 grader", {diff: 6}],
["Cone 5.0 m, 30 grader", {diff: 8}],
["Cone 10.0 m, 30 grader", {diff: 12}],
["Cone 20.0 m, 30 grader", {diff: 18}],
["Line 1.5 m", {diff: 2}],
["Line 2.5 m, diameter 1.5 m", {diff: 4}],
["Line 10.0 m, diameter 1.5 m", {diff: 8}],
View framerproject.coffee
# Import layers
Imports = Framer.Importer.load "imported/Nordea Markets Master"
# Import settings and model
config = require("nmSettings").config;
model = require("nmModel").model;
# Import page changing behavior
slideIn = require("nmSlidein");
# Import instances of pages
TradeInstance = require("nmTrade");
@woeldiche
woeldiche / Procfile
Last active Dec 4, 2018
Share your Framer.js prototypes
View Procfile
web: NODE_ENV=production node server.js
View index.jade
//- Include file with mixin
include ./titles
//- Use mixin
+titlepage(title)
//- Other content
.u-containedSmall.u-trailer.u-padded
include ../includes/search
View Gruntfile.js
// Generated on 2013-11-11 using generator-webapp 0.4.4
/* jshint camelcase: false */
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
View myfiles
// Generated on 2013-11-11 using generator-webapp 0.4.4
/* jshint camelcase: false */
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
View tn.config.js
TN.config.table = TN.config.table || {};
TN.config.table.data = TN.config.table.data || {};
TN.config.table.data['example-table'] = {
serverside: false,
pipeline: 200,
ajaxurl: "src/data/my-subscriptions.json",
order: [1, 'asc'],
pagingType: 'simple_numbers',
processing: true,
language: {
View template.hbs
<div data-desk-after="logo" data-mobile-append="main-menu" data-responsive>
<h2 class="aria--visible">Main menu</h2>
<ul class="menu--main mobile-one-whole tablet-one-half">
{{#each links}}
{{#if this.active}}
<li class="item--open active-trail" data-menu="tree">
<a id="main-menu--active" href="#" class="active-trail">{{this.label}}</a>
{{> menu-subnav this.menu-second}}
</li>
{{else}}
@woeldiche
woeldiche / config.js
Last active Aug 29, 2015
client-side template
View config.js
var TN = TN || {};
TN.config = TN.config || {};
TN.config.list = TN.config.list || {};
TN.config.list.dropdown = TN.config.list.dropdown || {};
TN.config.list.dropdown['example-dropdown'] = {
template: "<% _(data.content).forEach(function(row) { <li><a class=\"media media--small\" href=\"#\"><div class=\"media__image leader--small\"><span class=\"img--icon img--medium\"><img src=\"<%= row.image.url %>\" width=\"<%= row.image.width %>\" height=\"<%= row.image.height %>\" alt=\"<%= row.image.alt %>\"></span></div><div class=\"media__body\"><div class=\"text-truncate\"><strong><%= row.payer %></strong></div><div class=\"text-truncate\"><%= row.accname %></div><div class=\"text-truncate\"><%= row.accnum %></div></div></a></li> }); %>",
ajaxurl: '@Model.AjaxUrl',
@woeldiche
woeldiche / advanced-view-row-as-object.js
Last active Aug 29, 2015
Template for advance view json response
View advanced-view-row-as-object.js
// Each row as an object
"advancedView": {
"allRows": true,
"dataContent": {
"aaData": [
{
"checkbox": "<div class=\"form-checkbox form-checkbox--single\"><input data-action=\"select.row\" type=\"checkbox\" id=\"select-{{@index}}\" value=\"{{@index}}\" /><label for=\"select-{{@index}}\"><span class=\"aria--visible\">{{this.id}}</span></label></div>",
"id": "<a class=\"inline-link\" data-link=\"row\" href=\"http://link-to-subscription-details.html\">{{this.id}}</a>",
"name" : "{{this.name}}",
"product" : "{{this.product}}",
You can’t perform that action at this time.