This file contains hidden or 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
(defn- map-names [items] | |
(into {} (mapv (fn [item] {(item :name) item}) items)) | |
) | |
(defn- reset-objects! [objects mapped-clj-objects] | |
(.forEach objects | |
(fn [object] | |
; the objects in these happen to be indexed by object.name | |
(let [clj-object (mapped-clj-objects (.-name object))] | |
(doseq [[k v] clj-object] |
This file contains hidden or 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
(def.directive cant_catch_me_olivia.board [] | |
(obj :restrict "E" | |
:replace true | |
:templateUrl "partials/board.html" | |
:link (fn [scope element attrs] | |
(let [board (.find element ".board") | |
cells (atom []) | |
each-span (fn [code] (doseq [data @cells] (apply code data)))] | |
(doseq [y (range 0 5)] | |
(let [row (js/$ "<li class='row'><ol class='board-row'></ol></li>") |
This file contains hidden or 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 = (grunt) -> | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks) | |
grunt.initConfig { | |
app: | |
dev: "app" | |
watch: | |
sass: | |
files: ['<%= app.dev %>/**/*.scss'] | |
tasks: ['compass:dist'] |
This file contains hidden or 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
(defmacro def.run [sym params & body] | |
(list '.run ;; .run( | |
(list '.module 'js/angular sym) ;; angular.module(sym) | |
(concat ['array] ;; Array.new( | |
(map str params) ;; "$rootScope", "$q" | |
[(concat ['fn params] body)] ;; , function($rootScope, $q) { code; })) | |
) | |
) | |
) |
This file contains hidden or 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
=== modified file 'src/ui/tools/tool-base.cpp' | |
--- src/ui/tools/tool-base.cpp 2014-01-20 01:30:15 +0000 | |
+++ src/ui/tools/tool-base.cpp 2014-01-24 02:16:47 +0000 | |
@@ -689,13 +689,7 @@ | |
break; | |
case GDK_KEY_space: | |
- xp = yp = 0; | |
- within_tolerance = true; | |
- panning = 4; |
This file contains hidden or 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
source 'https://rubygems.org' | |
gem 'httmultiparty' |
This file contains hidden or 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
@session.configure do |c| | |
# manipulate the data after reading from the spreadsheet | |
# c.post_read_data = proc { |data| | |
# data[:replacements]['Superpower Text'] << '!!' | |
# } | |
c.data_source = "data.ods" | |
end | |
This file contains hidden or 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
@session.configure do |c| | |
c.svg_source = "template.svg" | |
c.svg_merged_target = "merged-template.svg" | |
c.png_export_width = 825 | |
c.pdf_dpi = 300 | |
c.pdf_card_size = "750x1050" | |
c.individual_files_path = "svgout/output_%03d.svg" |
This file contains hidden or 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
@session.configure do |c| | |
c.svg_source = "template.svg" | |
c.svg_merged_target = "merged-template.svg" | |
c.png_export_width = 825 | |
c.pdf_dpi = 300 | |
c.pdf_card_size = "750x1050" | |
c.individual_files_path = "svgout/output_%03d.svg" |
This file contains hidden or 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
@session.configure do |c| | |
c.svg_source = "template.svg" | |
c.svg_merged_target = "merged-template.svg" | |
c.png_export_width = 825 | |
c.pdf_dpi = 300 | |
c.pdf_card_size = "750x1050" | |
c.individual_files_path = "svgout/output_%03d.svg" |