This file contains 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
https://www8.cao.go.jp/kourei/whitepaper/w-2020/html/zenbun/s1_1_1.html |
This file contains 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
#!/bin/bash | |
set -x | |
sudo yum update -y | |
sudo yum remove -y mariadb-libs | |
sudo yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm | |
yum list installed | grep mysql |
This file contains 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
sudo amazon-linux-extras install epel -y | |
sudo yum install stress -y |
This file contains 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
#!/bin/sh | |
# | |
# force-merge | |
# add the following to <repository>/.hg/hgrc: | |
# [hooks] | |
# pretxnchangegroup.forcemerge = /path/to/force-merge.sh | |
PATH=$PATH:~/bin | |
exclude='"re:(T_9999999|V[0-9]\.0[a-z]-line)"' |
This file contains 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
function reverse(arr) { | |
return arr.length === 0 ? | |
arr : | |
[arr.pop()].concat(reverse(arr)); | |
} | |
var a = [1, 10, 100, 20, 0]; | |
console.log(a); | |
console.log(reverse(a)); |
This file contains 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
package tetromino; | |
public class Point implements Comparable<Point> { | |
int x; | |
int y; | |
public Point(int x, int y) { | |
this.x = x; | |
this.y = y; | |
} |