git clone https://github.com/elixir-ecto/ecto.git
cd ecto
MIX_ENV=docs mix docs -f epub
open docs/Ecto.epub
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
Rails.ajax({ | |
type: 'GET', | |
url: '/users/' + <%= params[:id] %> + '/country', | |
// see: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams | |
data: new URLSearchParams({'country': country}).toString(), | |
success: function (response) { | |
// ... | |
} | |
}) |
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
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
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
{ | |
"key": "cmd+i", | |
"command": "macros.addPipeline" | |
} |
Phoenix LiveView doesn't include TypeScript install instructions since they don't maintain TypeScript support. Follow these additional steps to get it working:
- Install the unofficial NPM typings package to dev dependencies with:
npm install -D @types/phoenix_live_view
- Change:
based on https://www.reddit.com/r/vim/comments/24g8r8/italics_in_terminal_vim_and_tmux/
- Check if italic font is supported:
$ echo -e "\e[3mitalic\e[23m"
- Also check:
$ infocmp $TERM | grep sitm
sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
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
# Copyright 2021 Scratchwork Development LLC. All rights reserved. | |
PI = 3.1415926 | |
class Game | |
attr_gtk | |
def tick | |
defaults | |
render |