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
| package org.ddth.game; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; |
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 Table(Base): | |
| id = Column(Integer, primary_key=True) | |
| _name = Column('name', String(24)) | |
| @property | |
| def name(self): | |
| return self._name; | |
| @name.setter | |
| def name(self, value): |
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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <title>JSON Transform</title> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script> | |
| <script type="text/javascript" src="https://raw.github.com/douglascrockford/JSON-js/master/json2.js"></script> | |
| <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"></link> |
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
| #this command configure firewall to accept incoming tcp connections on port 80 | |
| firewall-cmd --zone=public --permanent --add-port=80/tcp | |
| firewall-cmd --reload |
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
| #!/bin/bash | |
| # REPO_NAME=<repo>.git | |
| # ORIGIN_URL=git@<host>:<project>/$REPO_NAME | |
| # REPO1_URL=git@<host>:<project>/$REPO_NAME | |
| rm -rf $REPO_NAME | |
| git clone --bare $ORIGIN_URL | |
| if [ "$?" != "0" ]; then | |
| echo "ERROR: failed clone of $ORIGIN_URL" |
NewerOlder