How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
# Copyright 2021 Scratchwork Development LLC. All rights reserved. | |
PI = 3.1415926 | |
class Game | |
attr_gtk | |
def tick | |
defaults | |
render |
based on https://www.reddit.com/r/vim/comments/24g8r8/italics_in_terminal_vim_and_tmux/
$ echo -e "\e[3mitalic\e[23m"
$ infocmp $TERM | grep sitm
sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
Phoenix LiveView doesn't include TypeScript install instructions since they don't maintain TypeScript support. Follow these additional steps to get it working:
npm install -D @types/phoenix_live_view
git clone https://github.com/elixir-ecto/ecto.git
cd ecto
MIX_ENV=docs mix docs -f epub
open docs/Ecto.epub
{ | |
"key": "cmd+i", | |
"command": "macros.addPipeline" | |
} |
""" | |
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) |
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) { | |
// ... | |
} | |
}) |