A Pen by Balazs Ree on CodePen.
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
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
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
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
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
from PdbSublimeTextSupport import preloop, precmd | |
pdb.Pdb.preloop = preloop | |
pdb.Pdb.precmd = precmd | |
try: | |
from ipdb.__main__ import Pdb as ipdb_Pdb | |
except ImportError: | |
pass | |
else: |
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
[environment] | |
recipe = collective.recipe.environment | |
# MacOSX problem, https://twistedmatrix.com/trac/ticket/6974#comment:12 | |
ARCHFLAGS = -Wno-error=unused-command-line-argument-hard-error-in-future |
It's better to set initial content directly on the DOM instead of editor.setContent(), because the latter one will fail before the editor has completely been set up.
A Pen by Balazs Ree on CodePen.