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 collect = require('grunt-collection-helper'); | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
allThirdParty: [ | |
collect.bower('socket.io-client').path('dist/socket.io.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
import json | |
from chameleon.zpt.template import ( | |
PageTemplate, | |
PageTemplateFile | |
) | |
from chameleon.tales import StructureExpr | |
from chameleon.utils import unicode_string | |
from chameleon.astutil import Symbol |
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
import json | |
@view_config(route_name='project', renderer="index.mako") | |
def project(request): | |
users = ["mahesh", "hari"] | |
return { | |
'users': json.dumps(users), | |
} |
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
systemcatalog = find_catalog(context, 'system') | |
q = systemcatalog['content_type'].eq('MediaFolder') | |
online = request.params.get('search.online') | |
searchprint = request.params.get('search.print') | |
tv = request.params.get('search.tv') | |
radio = request.params.get('search.radio') | |
catalog = find_catalog(context, 'sdidemo') |
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
{ | |
"endpoint": { | |
"name": "deform", | |
"source": "/Users/ree/work/substanced/deform-play", | |
"target": "1.10.3" | |
}, | |
"canonicalDir": "/Users/ree/work/substanced/deform-play", | |
"pkgMeta": { | |
"name": "deform", | |
"version": "1.10.3", |
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
{ | |
"endpoint": { | |
"name": "deform", | |
"source": "/Users/ree/work/substanced/deform-play", | |
"target": "1.10.3" | |
}, | |
"canonicalDir": "/Users/ree/work/substanced/deform-play", | |
"pkgMeta": { | |
"name": "deform", | |
"version": "1.10.3", |
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
{ | |
"bootstrap": { | |
"source": {} | |
}, | |
"jquery": { | |
"source": { | |
"scripts": "components/jquery/jquery.js" | |
} | |
}, | |
"jquery-ui": { |
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/sh | |
# -- | |
# How to simulate network latency and errors on macosx. | |
# | |
# After this you can access the 127.0.0.10 as an alias | |
# to your localhost, but with a roundtrip delay. | |
# | |
# delay 150ms adds the delay to the given pipe (*) | |
# plr 0.05 simulates packet loss. |
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": "sdidev-resources", | |
"version": "0.1.0", | |
"dependencies": { | |
"jquery": "*", | |
"bootstrap": "*", | |
"slickgrid": "*" | |
}, | |
"development": { |
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
buster.assert.exception(block, function (err) { | |
return err.message.slice(0, expected.length) == expected; // startswith | |
}, message); |