該当する各社の対応欄に企業名を書いてください。備考があれば適宜カッコ書きしてください。
- 定時前に帰宅させてくれるホワイトな会社のりすとを気軽に作りたい
- 定時前に帰宅させてくれるホワイトな会社がホワイトアピールできる場があれば良いな
| diff --git a/global/index.php b/global/index.php | |
| index 956a254..179265a 100644 | |
| --- a/global/index.php | |
| +++ b/global/index.php | |
| @@ -9,7 +9,7 @@ | |
| require_once('./auth.php'); | |
| $auth = new Auth(); | |
| $secret_token = $auth->generateToken(); | |
| - extract($_POST); | |
| + $token = $_POST['token']; |
| Hello World |
| <?php | |
| $sock = @socket_create_listen(8091); | |
| if(!$sock){die("port in use\n");} | |
| $pids=[]; | |
| for($i=0; $i < 10 ; $i++){ | |
| $pid = pcntl_fork(); | |
| if($pid){ | |
| $pids[] = $pid; | |
| }else{ |
| <?php | |
| $sock = @socket_create_listen(8080); | |
| if(!$sock){die("port in use\n");} | |
| $client_sock = socket_accept($sock); | |
| while(true){ | |
| $buf = socket_read($client_sock, 1024); | |
| if(preg_match('/GET ([^ ]+)/', $buf, $m) && is_file('./htdocs/'.$m[1])){ | |
| $content = file_get_contents('./htdocs/'.$m[1]); | |
| $res = "HTTP/1.1 200 OK\nContent-Type: text/html\nCache-Control: max-age=8640000\nAccept-Ranges: bytes\nContent-Length: 197\nServer: HTTPServer/0.1\n\n"; | |
| socket_write($client_sock, $res.$content); |
| <template> | |
| <div class="links"> | |
| <a v-on:click="doSomething">{{title}}</a> | |
| </div> | |
| </template> | |
| <script> | |
| export default { | |
| props: ['data_id', 'title'], | |
| methods: { |
| <div id="app"> | |
| <foo data_id="42" title="Do something"></foo> | |
| </div> |
| $('.links > a').on('click', function(){ | |
| console.log($(this).data('id')); | |
| }); |
| <div class="links"> | |
| <a data-id='{{ $number }}'>Do something</a> | |
| </div> |
| .links > a:hover { | |
| color: red; | |
| } |