--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
defmodule MyBlog.Repo.Migrations.CreatePost do | |
use Ecto.Migration | |
def change do | |
create table(:posts, primary_key: false) do | |
add :id, :uuid, primary_key: true | |
add :body, :string | |
add :word_count, :integer | |
timestamps |
var io = require('socket.io-client')("http://localhost:3001") | |
var Promise = require("bluebird") | |
io.emitAsync = Promise.promisify(io.emit) | |
io.emitAsync("report", { | |
"name": "thomas" | |
}).then(function(data){ | |
console.log(data) | |
}).catch(function(e){ | |
console.log(e.message) |
Once upon a time…
I once took notes (almost sentence by sentence with not much editing) about the architectural design concepts - Command and Query Responsibility Segregation (CQRS) and Event Sourcing (ES) - from a presentation of Greg Young and published it as a gist (with the times when a given sentence was heard).
I then found other summaries of the talk and the gist has since been growing up. See the revisions to know the changes and where they came from (aka the sources).
It seems inevitable to throw Domain Driven Design (DDD) in to the mix.
ST(Sublime Text)安装emmet插件后,输入!
,按tab
键就可以快速得到一个简易的html5模板,甚是便捷:
<!DOCTYPE html>
<html lang="en">
<head>
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs
Task | Time required | Assigned to | Current Status | Finished |
---|---|---|---|---|
Calendar Cache | > 5 hours | - | in progress | - [x] ok? |
Object Cache | > 5 hours | - | in progress | [x] item1 [ ] item2 |
Object Cache | > 5 hours | - | in progress |
|
Object Cache | > 5 hours | - | in progress |
|
- works
- works too
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the\
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)