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
(ns cljs.user | |
(:require-macros [x.macros :as m]) | |
(:require [integrant.core :as ig])) | |
(enable-console-print!) | |
(def config (m/read-config "config.edn")) | |
(def system nil) | |
(defn- halt-system [system] |
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
(ns modulant.core | |
"Make a system out of a system: `(md/exec modules-map) ;; => system-map`." | |
(:require | |
[clojure.walk :as walk] | |
[integrant.core :as ig] | |
[modulant.merge :as merge])) | |
;;; Logic | |
(defn- fold |
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
;; Portions of this file are taken from the clj-http project. | |
;; https://github.com/dakrone/clj-http | |
;; They are licenced under MIT License. | |
(ns client.middleware | |
"clj-http 3.0.0 master is a bit in limbo, rather than fork it, or wait for the maintainer, | |
this namespace tries to make up for some of it's shorcomings. | |
See: |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-tooltip/core-tooltip.html"> | |
<polymer-element name="my-element" fit=""> | |
<template> | |
<style> |
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
<core-animation id="animation" duration="300" easing="ease-in-out" fill="forwards"></core-animation> | |
... | |
var start = scroller.scrollTop; | |
var end = section.offsetTop; | |
var delta = end - start; | |
this.$.animation.target = scroller; | |
this.$.animation.customEffect = function (timeFraction, target, animation) { |
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
# step : Integer | |
class Model < ActiveRecord::Base | |
with_options if: "step < 1" do |assoc| | |
validates :foo, presence: true | |
end | |
with_options if: "step < 2" do |assoc| | |
validates :bar, presence: true | |
end | |
# ... | |
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
# Minimal view thingie to make code a bit more manageable. | |
# Usage example: | |
# | |
# class MyView extends View | |
# ui: | |
# button: '.my-button' | |
# events: | |
# 'click @ui.button': 'doAction' | |
# constructor: -> | |
# super |
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
class Template < ActionView::Base | |
include ApplicationHelper | |
def initialize; super(ActionController::Base.view_paths) end | |
end | |
tmpl = Template.new() | |
tmpl.render(template: "foos/foo", layout: 'layouts/bar') |
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
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 443, host: 8443 | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
config.vm.provision :shell, path: 'script/provision.sh' |
NewerOlder