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
pygmentize -S native -f html -a .syntax > syntax.css |
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/hydeengine/siteinfo.py b/hydeengine/siteinfo.py | |
index 24018dc..9aff833 100644 | |
--- a/hydeengine/siteinfo.py | |
+++ b/hydeengine/siteinfo.py | |
@@ -363,12 +363,12 @@ class ContentNode(SiteNode): | |
@property | |
def target_folder(self): | |
deploy_folder = self.site.target_folder | |
- return deploy_folder.child_folder_with_fragment(self.url) | |
+ return deploy_folder.child_folder_with_fragment(self.fragment) |
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
.highlight .hll { background-color: #404040 } | |
.highlight { background: #202020; color: #d0d0d0 } | |
.highlight .c { color: #999999; font-style: italic } /* Comment */ | |
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ | |
.highlight .g { color: #d0d0d0 } /* Generic */ | |
.highlight .k { color: #6ab825; font-weight: bold } /* Keyword */ | |
.highlight .l { color: #d0d0d0 } /* Literal */ | |
.highlight .n { color: #d0d0d0 } /* Name */ | |
.highlight .o { color: #d0d0d0 } /* Operator */ | |
.highlight .x { color: #d0d0d0 } /* Other */ |
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
public class JavaTest { | |
public static void main(String[] args) { | |
MyClass<Integer> x = new MyClass<Integer>(); | |
x.hello(); | |
x.myVal(); | |
} | |
} |
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
public class JavaTypeParamNamespace { | |
public static void main(String[] args) { | |
// This should compile: | |
new MyClassRenamedTypes<Integer>().map(1, new MyArgument<String>("String")); | |
// This fails with the error | |
// JavaTypeParamNamespace.java:8: <U>map(U,MyArgument<U>) in MyClass<java.lang.Integer> cannot be applied to (int,MyArgument<java.lang.String>) | |
new MyClass<Integer>().map(1, new MyArgument<String>("String")); | |
} | |
} |
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
JavaTest.java:11: g(java.lang.Class<? extends java.lang.Iterable<?>>) in ScalaTest cannot be applied to (java.lang.Class<java.util.ArrayList>) | |
ScalaTest.g(ArrayList.class); | |
^ | |
JavaTest.java:15: <T>f(java.lang.Class<T>) in ScalaTest cannot be applied to (java.lang.Class<java.lang.Object>) | |
ScalaTest.f(Object.class); | |
^ | |
JavaTest.java:16: g(java.lang.Class<? extends java.lang.Iterable<?>>) in ScalaTest cannot be applied to (java.lang.Class<java.lang.Object>) | |
ScalaTest.g(Object.class); | |
^ | |
JavaTest.java:17: <T>f(java.lang.Class<T>) in JavaTest cannot be applied to (java.lang.Class<java.lang.Object>) |
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
""" | |
Say that we're storing pickled Python objects in a complicated Java data | |
structure, which might contain nested scala.Tuple2s and java.util.Lists. | |
We may be able to create a pickled representation of the Java data structure | |
based on the pickled objects that it contains, allowing the Python consumer to | |
deserialized the nested object in a single unpickle call. | |
This file contains a prototype of this idea. It has only been tested with | |
Pickle protocol version 2. |
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
""" | |
Given a Python list containing pickled objects, joining the pickles into | |
a single pickled list and deserializing it can be faster than deserializing | |
each pickle individually, despite the extra string processing that this | |
requires. | |
The performance difference is much more pronounced if pickle is used instead of | |
cPickle. | |
NOTE: this code is specific to Pickle protocol 2; I'm not sure if these results |
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
[root@a-worker-machine ~]# jstack -F 5945 | |
Attaching to process ID 5945, please wait... | |
Debugger attached successfully. | |
Server compiler detected. | |
JVM version is 20.0-b12 | |
Deadlock Detection: | |
java.lang.NullPointerException | |
at sun.jvm.hotspot.oops.InstanceKlass.computeSubtypeOf(InstanceKlass.java:426) | |
at sun.jvm.hotspot.oops.Klass.isSubtypeOf(Klass.java:137) |
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/ec2/spark_ec2.py b/ec2/spark_ec2.py | |
index 2ab11db..b29d0c3 100755 | |
--- a/ec2/spark_ec2.py | |
+++ b/ec2/spark_ec2.py | |
@@ -557,18 +557,18 @@ def main(): | |
inst.terminate() | |
# Delete security groups as well | |
group_names = [cluster_name + "-master", cluster_name + "-slaves", cluster_name + "-zoo"] | |
- groups = conn.get_all_security_groups() | |
+ groups = [g for g in conn.get_all_security_groups() if g.name in group_names] |
OlderNewer