A service for Angel that uses package:mailer
to send e-mails.
It also supports rendering templates (Jael, mustache, whatever), which makes developing email templates easier.
In addition, if given an assetsDir
, it will inline CSS stylesheets (use cacheAssets: true
in production).
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 <http> | |
func WrapNum(value) -> { value } | |
timesTwo = .value * 2 | |
print(timesTwo(WrapNum(2)).value) | |
srv = HttpServer(ctx { | |
{req, res} = ctx |
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
# create table users | |
schema users = | |
{ | |
id: serial; | |
name: string; | |
age: int; | |
} | |
# select * from users | |
users |
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
alert() |
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
" Plugins | |
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'tpope/vim-sensible' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'itchyny/lightline.vim' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'SirVer/ultisnips' | |
Plug 'honza/vim-snippets' | |
Plug 'vim-syntastic/syntastic' |
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
let arr = rand float[2, 3]; | |
let arr2 = arr + 2 | |
print arr2 |
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 {Scene} from 'phaser'; | |
export default class extends Scene { | |
private sounds: Phaser.Sound.BaseSound[] = []; | |
create() { | |
this.sounds.push(this.sound.add('song_1', '<url>', etc...)); | |
this.sounds.push(this.sound.add('song_2', '<url>', etc...)); | |
this.sounds.push(this.sound.add('song_3', '<url>', etc...)); | |
this.sounds.push(this.sound.add('song_4', '<url>', etc...)); |
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
// Glob up C++ sources | |
var srcs = combine([ | |
glob("src/*{.h,.cpp}") | |
]) | |
// Exclude some sources | |
srcs = exclude(srcs, [glob("test/**")]) | |
// Grab all the object files, creates multiple targets | |
var objects = compile_cpp(srcs).outputs |