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
} else if (definition instanceof PropertyDateTimeDefinition) { | |
if (firstValue == null) { | |
propertyData = bof.createPropertyDateTimeData(id, (List) null); | |
} else if (firstValue instanceof GregorianCalendar) { | |
propertyData = bof.createPropertyDateTimeData(id, (List) values); |
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
guid = None | |
while True: | |
guid = uuid.uuid1() | |
if self.store.exists(guid) == False: | |
break | |
self.store.set(guid, tornado.escape.json_encode(user)) |
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
# Load the docker-machine environment and update the route to let MacOSX access containers IPs. | |
denv() { | |
eval $(docker-machine env $1) | |
SUBNET=$(docker network inspect $(docker network ls | grep bridge | awk '{ print $1; }') | grep Subnet | awk '{ gsub(/"/, "", $2); print $2; }') | |
sudo route -n delete $SUBNET |
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/bash | |
hg clone http://hg.openjdk.java.net/jdk10/jdk10 && cd jdk10 && chmod +x get_source.sh && ./get_source.sh |