You can update a MySQL DATETIME field in Laravel with Eloquent like so:
DB::table('users')
->where('id', $user_id)
->update(array('valid_until' => DB::raw('DATE_ADD(valid_until, INTERVAL 1 MONTH)')));
import { Component, Event, EventEmitter, Prop, State, h } from '@stencil/core'; | |
/* | |
Requires @ionic/core for the UI. | |
CSS shake animation by Sarah Drashner to place whereever you want, | |
taken from https://css-tricks.com/snippets/css/shake-css-keyframe-animation/ | |
.shake-animation { | |
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both; |
<?php | |
trait CastsValueObjects | |
{ | |
protected function castAttribute($key, $value) | |
{ | |
$castToClass = $this->getValueObjectCastType($key); | |
// no Value Object? simply pass this up to the parent | |
if (!$castToClass) { | |
return parent::castAttribute($key, $value); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<link rel="stylesheet" href="css/style.css"> | |
<link rel="icon" type="image/png" href="favicon.png"> | |
</head> |
I think the Zettelkasten method is a good idea, but Zettelkasten.de is incredibly verbose to explain a simple note-taking approach. Here's my summary and my process.
Be aware of this concept:
tl;dr: Start writing mundane things down, don't obsess over structure or words, reduce friction, let it unfold over the years, have no expectations about therapeutic effects or whatever.
I write stuff in TypeScript and used Tape as a test runner. After converting my project to use ECMAScript modules (ESM), tape stopped working, causing quite a bit of headache.