This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
fooTemplate = fs.readFileSync(__dirname + '/templates/foo-template.html'), | |
_ = require('underscore'), | |
app = require('../app'); | |
var FooView = module.exports = function FooView(model) { | |
var self = this; | |
self.model = model; | |
self.element = $(fooTemplate); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
// show elapsed time at the end | |
require('time-grunt')(grunt); | |
// load all grunt tasks | |
require('load-grunt-tasks')(grunt); | |
//MODIFIED: add require for connect-modewrite | |
var modRewrite = require('connect-modrewrite'); | |
grunt.initConfig({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
///blabla | |
browserify: { | |
basic: { | |
src: ['<%= yeoman.app %>/scripts/main.js'], | |
options: { | |
transform: ['brfs'] | |
}, | |
dest: '.tmp/scripts/application.js' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Observable plain javascript objects with jQuery (rendered with transparency.js)</p> | |
<ul class="items"> | |
<li class="title"></li> | |
</ul> | |
<p>Wait for a few seconds and watch the last item in list</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Foo application Node.js service" | |
author "Niklas Närhinen" | |
setuid foo | |
start on (local-filesystems and net-device-up) | |
stop on shutdown | |
respawn | |
respawn limit 5 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#find out scanner model with scanimage -L | |
scanimage -d hp3900:libusb:003:005 --resolution=600 --mode=Gray > raw.pnm | |
#gamma correction (fiddle around with the value suitable for your printer) | |
convert raw.pnm -gamma 0.5 out.pnm | |
#convert to pdf | |
gm convert out.pnm out.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ea:user", | |
"title": "User", | |
"description": "Shows information about a user", | |
"available_properties": [ | |
{ | |
"name": "real_name", | |
"type": "string" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns server.routes | |
(:use compojure.core | |
server.views | |
[ring.middleware.json :only (wrap-json-response)] | |
ring.middleware.session | |
[ring.util.response :only (response)] | |
[hiccup.middleware :only (wrap-base-url)]) | |
(:require [compojure.route :as route] | |
[compojure.handler :as handler] | |
[compojure.response :as response])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns cljs_todolist.hello | |
(:require [crate.core :as crate] | |
[yolk.bacon :as b] | |
[yolk.ui :as ui] | |
[jayq.core :refer [$] :as j]) | |
(:use-macros [crate.def-macros :only [defpartial]])) | |
(def $content ($ :#content)) |