https://webassembly.org/getting-started/developers-guide/ やってみる。
brew search emsdk したら、見つからないけど emscripten じゃね?と brew に言われたので brew install emscripten した。
~/.zshrc
# icu4c
https://webassembly.org/getting-started/developers-guide/ やってみる。
brew search emsdk したら、見つからないけど emscripten じゃね?と brew に言われたので brew install emscripten した。
~/.zshrc
# icu4c
| #include <stdio.h> | |
| int main() { | |
| int nc = 0, mode = 0; | |
| char* str = "TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq " | |
| "TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBL" | |
| "OFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm " | |
| "SOn TNn ULo0ULo#ULo-WHq!WFs XDt!"; | |
| for(;*str != 0; str++, mode = !mode) | |
| for(int mc = *str; mc > '@'; mc--) |
| #include <stdio.h> | |
| int main() { | |
| int nc = 0, mode = 0; | |
| char* str = "TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq " | |
| "TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBL" | |
| "OFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm " | |
| "SOn TNn ULo0ULo#ULo-WHq!WFs XDt!"; | |
| for(;*str != 0; str++, mode = !mode) { | |
| for(int mc = *str; mc > '@'; mc--) { |
| #include <stdio.h> | |
| int main() | |
| { | |
| int a = 10, b = 0, c = 10; | |
| char* str = "TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq " | |
| "TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBL" | |
| "OFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm " | |
| "SOn TNn ULo0ULo#ULo-WHq!WFs XDt!"; | |
| while (a != 0) | |
| { |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Resources: | |
| sampleNodejsApp: | |
| Type: AWS::ElasticBeanstalk::Application | |
| Properties: | |
| ApplicationName: sampleNodejsApp | |
| Description: AWS Elastic Beanstalk Sample Nodejs Application | |
| sampleNodejsAppVersion: | |
| Type: AWS::ElasticBeanstalk::ApplicationVersion | |
| Properties: |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| # listen 80; | |
| # listen [::]:80; | |
| root /var/www/www.example.com; | |
| index index.php index.html; | |
| server_name www.example.com; | |
| location / { | |
| try_files $uri $uri/ /index.php$is_args$args =404; |
| { pkgs, lib, ... }: | |
| # let | |
| # pkgsSrc = (builtins.fetchGit { | |
| # url = https://github.com/nixos/nixpkgs; | |
| # ref = "release-19.03"; | |
| # }); | |
| # pkgs = import pkgsSrc {}; | |
| # lib = pkgs.lib; | |
| # in | |
| with lib; |
| rm -rf /var/www | |
| mkdir -p /var/www | |
| chown nginx:nginx /var/www | |
| pushd /var/www | |
| wget http://wordpress.org/latest.tar.gz | |
| mv latest.tar.gz wordpress-$stime.tar.gz | |
| tar -zxvf wordpress-$stime.tar.gz | |
| mv wordpress default |