- alp入れる
- スレッド数増やす
- ワーカ増やす
- 静的ファイルは選んで圧縮する
- キャッシュでレスポンス
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
import { getObjectsByPrototype } from '/game/utils'; | |
import { Creep, StructureSpawn } from '/game/prototypes'; | |
import { ERR_NOT_OWNER, ERR_NOT_ENOUGH_ENERGY, ERR_INVALID_ARGS, ERR_NOT_IN_RANGE, MOVE, ATTACK } from '/game/constants'; | |
export function loop() { | |
var mySpawn = getObjectsByPrototype(StructureSpawn)[0]; | |
var res = mySpawn.spawnCreep([ATTACK, MOVE]).object; | |
var myCreeps = getObjectsByPrototype(Creep).filter(creep => creep.my); | |
var enemyCreep = getObjectsByPrototype(Creep).find(creep => !creep.my); |
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
user isucon; | |
worker_processes 2; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 4096; | |
accept_mutex_delay 100ms; | |
} |
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
"Marged" | |
for branch in `git branch -r --merged | grep -vE "/master$|/develop$"` | |
do echo -e `git log --no-merges -n 1 --format="%ci, %cr, %an" $branch | head -n 1` \\t$branch; | |
done | sort -r | |
"No-Marged" | |
for branch in `git branch -r --no-merged | grep -vE "/master$|develop$"` | |
do echo -e `git log --no-merges -n 1 --format="%ci, %cr, %an, %ae, " $branch | head -n 1` \\t$branch; | |
done | sort -r |
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
version: '3' | |
services: | |
redis: | |
image: redis:5.0.0 | |
container_name: master | |
ports: | |
- "6379:6379" | |
networks: | |
- redis-replication |
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
import { Component, Prop, Emit, Watch, Vue } from 'vue-property-decorator'; | |
@Component({ | |
/** filters */ | |
filters: { | |
convertUpperCase(value: string): string | null { | |
if (!value) { | |
return null; | |
} | |
return value.toUpperCase(); |