Skip to content

Instantly share code, notes, and snippets.

@mndvns
mndvns / shoelace-build.js
Created January 11, 2014 03:15
Shoelace build
/*
* Module dependencies.
*/
var rework = require('rework');
var mixins = require('rework-mixins');
var calc = require('rework-calc');
var breakpoints = require('rework-breakpoints');
var modules = require('rework-modules');
var myth = require('myth');
@mndvns
mndvns / gist:8447177
Created January 15, 2014 23:54
app.js
/**
* Module dependencies
*/
var stack = require('simple-stack-ui');
var envs = require('envs');
var qs = require('qs');
var app = module.exports = stack({
restricted: false
script#example-output.target(type="text/x-minstache", data-codedoc='{"json": "example-json", "html": "example-html"}').
<div id="html">{{!html}}</div>
<script type="application/json" id="json">{{!json}}</scr{{aaa}}ipt>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></scri{{aaa}}pt>
<script src="http://hypergroup.github.io/ng-hyper/code/ng-hyper-0.1.0.js"></scri{{aaa}}pt>
<script>
angular.module('app', ['ng-hyper']).config(function($injector){
var apis = document.getElementById('json').text.split('...').map(function(api){
try {
(function() {
function log(msg){
if (!console || !console.log) return;
if (console.__mozillaConsole__) return console.log(msg);
console.log('%clr: ' + msg, 'color: gray;');
}
var __customevents = {}, __protocol = {}, __connector = {}, __timer = {}, __options = {}, __reloader = {}, __livereload = {}, __less = {}, __startup = {};
/*
* The default style sheet used to render HTML.
*
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
@mndvns
mndvns / firefox_forms.css
Created June 13, 2014 20:15
Firefox's built-in form styles
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
Styles for old GFX form widgets
**/
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
@mndvns
mndvns / firefox_html.css
Created June 13, 2014 20:15
Firefox's built-in html styles
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* bidi */
[dir="rtl"] {
998996f... 06/13/14 14:15 public Firefox's built-in html styles
dd4e37e... 06/13/14 14:15 public Firefox's built-in form styles
46940bc... 06/13/14 14:08 public
5ccdaef... 04/23/14 13:28 public
10962633 04/17/14 01:58 public
7880aa3... 03/18/14 01:02 public
9270113 02/28/14 05:16 public
4443fdf... 02/14/14 02:11 public
bb1924d... 02/14/14 02:10 public
8447177 01/15/14 16:54 public app.js
/**
* Module dependencies
*/
var pkg = require('../package');
var Emitter = require('emitter');
var parseLinks = require('links-parser');
// set the default api path to '/api'
var loc = window.location;
/**
* Module dependencies
*/
var React = require('react');
var dom = React.createElement;
var Router = require('react-router');
var RouteHandler = Router.RouteHandler;
var Link = Router.Link;
var Store = require('./store');