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
| <?php | |
| // The only chance now, I felt was the possibility that we'd gone to such | |
| // excess that nobody in the position to bring the hammer down on us could | |
| // possibly believe it. | |
| // Hunter S. Thompson | |
| trait CompactClass { | |
| private $data; |
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
| ab.connect("ws://localhost:8080", | |
| // WAMP session was established | |
| function(connection) { | |
| // things to do once the session has been established | |
| window.connection = connection; | |
| connection.subscribe('deploy', function(topic, data) { | |
| // This is where you would add the new article to the DOM (beyond the scope of this tutorial) | |
| console.log(data); //this prints out broadcasted data | |
| }); | |
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
| <?php | |
| //sid.php (indexy) | |
| if(isset($SID["_MSG_ARRAY"])) foreach ( $SID["_MSG_ARRAY"] as $m ) $SID["MESSAGES"] .= $m; | |
| if(isset($SID["_ERR_ARRAY"])) foreach ( $SID["_ERR_ARRAY"] as $m ) $SID["ERRORS"] .= $m; | |
| if(isset($SID["_CON_ARRAY"])) foreach ( $SID["_CON_ARRAY"] as $m ) $SID["CONTENT"] .= $m; | |
| //sid.php (variable) | |
| //z kerej riti sa vzal $select_flag? |
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
| embeddedMedia: | |
| class: Components\EmbeddedMedia | |
| implement: Components\IEmbeddedMediaFactory | |
| arguments: [%snippet%] |
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
| GsonBuilder gsonBuilder = new GsonBuilder(); | |
| Gson inputGson = new Gson(); | |
| ArrayList<ArrayList<String>> list = inputGson.fromJson(json, ArrayList.class); | |
| Coordinate[] coordinates = new Coordinate[list.size()]; | |
| for (int i = 0; i < list.size(); i++) { | |
| coordinates[i] = new Coordinate(Double.parseDouble(list.get(i).get(0)), Double.parseDouble(list.get(i).get(1))); | |
| } |
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
| { | |
| "location": { | |
| "type": "Polygon", | |
| "coordinates": [ | |
| [ | |
| 48.122033990283, | |
| 17.036580815472 | |
| ], | |
| [ | |
| 48.211966009717, |
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
| var apeConfig = { | |
| domain: 'auto', | |
| server: 'server.com:6969', | |
| transport: 1, | |
| } | |
| var baseUrl = 'http://' + window.location.hostname; | |
| if(window.location.port != 80) | |
| { |
NewerOlder