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 centos:6.8 | |
| ADD ./conf/nginx.repo /etc/yum.repos.d/ | |
| # nginx & python | |
| RUN yum localinstall -y http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
| RUN yum install -y https://centos6.iuscommunity.org/ius-release.rpm | |
| RUN yum install -y nginx-1.10.1 | |
| RUN yum install -y make gcc | |
| RUN yum install -y libxml2-devel |
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
| "use strict" | |
| const modal = document.createElement("div"); | |
| modal.className = "modal"; | |
| export default class MyLoader { | |
| constructor() { | |
| this.loading = document.createElement("div"); | |
| this.loading.className = "loader"; |
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
| $ npm install -g uglify-js |
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
| "use strict" | |
| const modal = document.createElement("div"); | |
| modal.className = "modal"; | |
| export default class MyLoader { | |
| constructor() { | |
| this.loading = document.createElement("div"); | |
| this.loading.className = "loader"; |
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 | |
| $nest = json_decode(file_get_contents("nest.json"), true); | |
| /* | |
| $nest = [ | |
| "a" => ["A" => ["A0" => [1,2], "A1" => [3,4]], "B" => ["A0" => [5,6], "A1" => [7,8]]], | |
| "b" => ["A" => ["A0" => [10,20], "A1" => [30,40]], "B" => ["A0" => [50,60], "A1" => [70,80]]] | |
| ]; | |
| */ |
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 | |
| function my_generator($name) | |
| { | |
| $file = fopen($name, "r"); | |
| if ($file) { | |
| while ($line = fgets($file)) { | |
| yield $line; | |
| } |
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 Test(object): | |
| c_var = "Hello" | |
| def __init__(self): | |
| self.i_var = "World" | |
| def __str__(self): | |
| return Test.c_var + " " + self.i_var | |
| print(Test()) |
NewerOlder