Day52
Contributionランキングを作った
Day51
Day50
わざわざこんな感じにするとupdated_atが更新されないですむ。
DB::table('users')
->where('id', $this->id)
->update(['contribution' => $contribution]);
Day49
Day48
Day47
Day46
Google Chartsにて。
Day45
Day44
const script = document.createElement('script')
script.src = 'https://js1.nend.net/js/nendAdLoader.js'
const container = <Element>this.$refs.container
const write = window.document.write
window.document.write = str => {
container.innerHTML += str
}
container.appendChild(script)
これじゃ一つしか広告表示できないので実際にはもっと色々めんどくさいことやってる。
追記)記事にした
Day43
Day41
Day40
Day39
module.exports = function(req, _res, next) {
if (
process.env.OUTPUT_HEADER_LOG &&
process.env.OUTPUT_HEADER_LOG == 'true'
) {
console.log(req.headers)
}
next()
}
Day38