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
define([ | |
'dojo/_base/array', | |
'dojo/store/util/SimpleQueryEngine' | |
], function (array, SimpleQueryEngine) { | |
return function findFirst(arr, query) { | |
var matches = SimpleQueryEngine(query).matches, | |
found; | |
array.some(arr, function (it) { |
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
<snippet> | |
<content><![CDATA[ | |
define([ | |
${1:'dojo/_base/declare'} | |
], function (${2:declare}) { | |
return declare(${3}); | |
}); | |
]]></content> |
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
# /etc/pf.conf | |
scrub-anchor "com.apple/*" | |
nat-anchor "com.apple/*" | |
nat on { en0 en1 } from 192.168.56.0/24 to any -> { (en0) (en1) } | |
rdr-anchor "com.apple/*" | |
dummynet-anchor "com.apple/*" | |
anchor "com.apple/*" | |
load anchor "com.apple" from "/etc/pf.anchors/com.apple" |
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
# /usr/local/etc/nginx/common | |
index index.html index.htm index.json; | |
if_modified_since before; | |
location ~ /\.(svn|git|ht) { | |
deny all; | |
} |
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
define([ | |
'compose/compose', | |
'dojo/Stateful', | |
'dojo/on' | |
], function (compose, Stateful, on) { | |
// TODO: | |
// * need a helper like this.own to help manage handles from eg watch and on | |
// * need a lifecycle - at least destroy/dispose |
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
function copyOnly(mid) { | |
return (/test/.test(mid) && mid !== 'dgrid/test/data/perf') || mid in { | |
// There are no modules right now in dojo boilerplate that are copy-only. If you have some, though, just add | |
// them here like this: | |
// 'app/module': 1 | |
}; | |
} | |
var profile = { | |
basePath: './', |
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
<!DOCTYPE html> | |
<html class="mobile dj_phone android_theme"> | |
<head> | |
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> | |
<title>Populizr Mobile</title> | |
<link rel="stylesheet" href="populizr.css" type="text/css" /> | |
<link rel="stylesheet" href="js/release/dojo/dojox/mobile/themes/android/android.css" type="text/css" /> | |
</head> | |
<body> |
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
$ java -jar shrinksafe.jar test.js | |
define(["dojo/_base/declare","dojo/domReady"],function(_1,_2){ | |
var _3,_4="",_5=function(_6){ | |
_3.innerHTML=(_4+=_6+"<br>"); | |
},A=_1(null,{go:function(){ | |
_5("A"); | |
}}),B=_1([A],{go:function longerName(){ | |
this.inherited(_7,arguments); | |
_5("B"); | |
}}); |
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
<script> | |
var require = { | |
// adjust to root of https://github.com/pmuellr/sample-npmish-project | |
baseUrl: 'npmish', | |
packages: [ | |
{ | |
name: 'a', | |
location: 'node_modules/a', | |
main: 'a.js', | |
packageMap: { |
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
@claro-text: #000; | |
@claro-background: #fff; | |
// other colors are calculated based on these two | |
@claro-primary: #cfe5fa; | |
@claro-error: #d46464; |