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
BASE_DIR=$PWD | |
echo "create SVN repositories" | |
for i in {1..2}; do | |
svnadmin create $BASE_DIR/svn-repo$i | |
svn checkout file://$BASE_DIR/svn-repo$i $BASE_DIR/svn-client$i | |
mkdir $BASE_DIR/svn-client$i/{trunk,branches,tags} | |
echo "file $i" > $BASE_DIR/svn-client$i/trunk/file$i.txt |
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
from CGAL.CGAL_Kernel import Point_2, Segment_2 | |
from CGAL.CGAL_Sweep_line_2 import \ | |
compute_intersection_points, \ | |
compute_subcurves, \ | |
do_curves_intersect,\ | |
test_segment_range | |
segments = [ | |
Segment_2(Point_2(0, 0), Point_2(10, 10)), |
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
class Base(models.Model): | |
myfield = models.PositiveIntegerField() | |
class Meta: | |
abstract = True | |
class Dummy(Base): | |
pass |
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
final AutoCloseInputStream stream = new AutoCloseInputStream(pData); | |
try { | |
final FileChannel channel = stream.getChannel(); | |
final MappedByteBuffer buf = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size()); | |
session.send(SERVER_EID, 100, | |
Charset.defaultCharset().decode(buf).toString()); | |
} | |
finally { | |
stream.close(); |
NewerOlder