It can be downloaded here
It can be downloaded here
| class Button extends React.Component { | |
| // constructor (props) { | |
| // super(props); | |
| // this.state = { counter: 0 }; | |
| // } | |
| state = { counter: 0 } | |
| handleClick = () => { | |
| // this.state.counter++ | |
| this.setState((prevState) => ({ |
| def create_matrix(width, height): | |
| result = [] | |
| for i in range(height): | |
| result.append([0 for i in range(width)]) | |
| print (result) | |
| # TOP BOTTOM LEFT RIGHT | |
| T = 0 | |
| B = height - 1 |
| bundle exec rspec -fd {{directory}} |
| #!/usr/bin/env bash | |
| ls -lah ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 | |
| rm -rf ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 | |
| docker-compose ps | |
| docker rmi -f $(docker images -aq) | |
| sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm |
| public class WihoutLoop{ | |
| public static void main(String []args){ | |
| reachfinal(0,100); | |
| } | |
| public static void reachfinal(int startpoint, int finalpoint){ | |
| if (startpoint != finalpoint){ | |
| System.out.println(startpoint); | |
| reachfinal(startpoint+1, finalpoint); |
| set-window-option -g mode-keys vi | |
| set -g status-keys vi | |
| # Easy config reload | |
| bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on |
| server_tokens off; | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| server_name le3.empeje.org; | |
| location /.well-known/acme-challenge/ { | |
| root /var/www/letsencrypt; |
| #!/usr/bin/env bash | |
| apt update | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| apt install docker-ce | |
| apt install python |
| #!/usr/bin/env bash | |
| sudo sh -c "echo 'deb http://apt.datadoghq.com/ unstable main' > /etc/apt/sources.list.d/datadog.list" | |
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C7A7DA52 | |
| sudo apt-get install datadog-agent | |
| sudo sh -c "sed 's/api_key:.*/api_key: your_api_key' /etc/dd-agent/datadog.conf.example > /etc/dd-agent/datadog.conf" | |
| /etc/init.d/datadog-agent start |