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
Psalm 104 | |
Translated by | |
Matthew Parker (1504-1575), Archbishop of Canterbury | |
The Argument. Psalme. CIIII. | |
This Psalme setth out: for prouidence, | |
Almighty Gods: magnificence: | |
His wisdome, power: his goodnes eke, | |
Of night, of day: of yere, of weeke, | |
His excellence: all thyng doth kepe. |
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 StringIO | |
def allowed_content(tags, attributes={}, styles=()): | |
""" | |
Given a list of allowed tags, dict of allowed attributes, and list of | |
allowed styles, generates a CKEditor 'allowedcontent' string. The default | |
lists used by the bleach module are: bleach.ALLOWED_TAGS, | |
bleach.ALLOWED_ATTRIBUTES, and bleach.ALLOWED_STYLES (which is empty by | |
default). This function's defaults are all empty lists/dicts. | |
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 jinja2.bccache import BytecodeCache | |
__author__ = "Thomas Grenfell Smith (thomathom@gmail.com)" | |
class ClearableMemcachedBytecodeCache(BytecodeCache): | |
"""Requires a fancy memcache client, like Google App Engine's, | |
that supports namespaces. Requires get, set, add, and incr. | |
When you call .clear(), the entries previously stored through | |
this object become inaccessible through it, although they |
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
diff --git a/coursebuilder/common/jinja_utils.py b/coursebuilder/common/jinja_utils.py | |
index 9854a44..a5501e0 100644 | |
--- a/coursebuilder/common/jinja_utils.py | |
+++ b/coursebuilder/common/jinja_utils.py | |
@@ -18,8 +18,10 @@ __author__ = 'John Orr (jorr@google.com)' | |
import jinja2 | |
from webapp2_extras import i18n | |
+from models.models import MemcacheManager | |
import safe_dom |
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
diff --git a/coursebuilder/common/jinja_filters.py b/coursebuilder/common/jinja_filters.py | |
index 2bb6d17..a8a6261 100644 | |
--- a/coursebuilder/common/jinja_filters.py | |
+++ b/coursebuilder/common/jinja_filters.py | |
@@ -17,8 +17,10 @@ | |
__author__ = 'John Orr (jorr@google.com)' | |
import jinja2 | |
+from jinja2.bccache import BytecodeCache | |
import safe_dom |
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
Manifest-Version: 1.0 | |
Bundle-ManifestVersion: 2 | |
Bundle-Name: manifest-version-bug | |
Bundle-SymbolicName: manifest-version-bug | |
Bundle-Version: 1 | |
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 |
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
package org.cishell.testcollector; | |
import java.io.File; | |
import java.util.HashMap; | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import org.osgi.framework.Bundle; | |
import org.osgi.framework.BundleContext; | |
import org.tap4j.model.Plan; |
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
% Code from http://goo.gl/lhXpN (Doug Hull's mathworks blog) | |
% With changes suggested by Andrea and Thomas in the comment thread | |
% | |
% See also "cloudplot": | |
% http://www.mathworks.com/matlabcentral/fileexchange/23238-cloudplot | |
% put your input data as vertical arrays in x and y | |
x = randn(100000,1); | |
y = randn(100000,1) * 20; |
NewerOlder