- #SmartBlock Daily
- [[Daily Highlight]]
- <%CURSOR%>
- Morning Routine
- {{[[TODO]]}} [[Brain dump]]
- {{[[TODO]]}} [[Active recall]]
- {{[[TODO]]}} Morning Brew for news
- {{[[TODO]]}} Daily review on Readwise
- {{[[TODO]]}} Read Manning books
- [[Daily Highlight]]
- Evening Routine
View Gemfile
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
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
ruby '2.6.5' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' | |
gem 'rails', '~> 6.1.3' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3', '~> 1.4' | |
# Use Puma as the app server |
View Smartblocks.md
View aoc2021-day1.livemd
Day 1
Mix.install([
{:finch, "~> 0.12.0"}
])
View aoc2021-day2.livemd
Day 2
Mix.install([
{:finch, "~> 0.12.0"}
])
View aoc2021-day3.livemd
Day 3
Mix.install([
{:finch, "~> 0.12.0"}
])
View input-day1.txt
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
13399 | |
13677 | |
11945 | |
9861 | |
6484 | |
4257 | |
6616 | |
7349 | |
7758 |
View gist:0abc4b24f02af2739f8f950c2ee89e6a
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
user: james | |
GET /admin/activities.js?timestamp=&filter=&further_actions=true | |
USE eager loading detected | |
Import => [:form] | |
Add to your query: .includes([:form]) | |
Call stack | |
/Users/james/src/openapply/app/models/import.rb:292:in `student_count' | |
/Users/james/src/openapply/app/extras/view_object/admin/concern/acts_as_activity_decorator.rb:214:in `i18n_options' | |
/Users/james/src/openapply/app/extras/view_object/admin/concern/acts_as_activity_decorator.rb:96:in `description' | |
/Users/james/src/openapply/app/views/nv/admin/activities/index.html.haml:33:in `block (2 levels) in _app_views_nv_admin_activities_index_html_haml___2599236250980066899_703020' |
View .envrc
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
use flake | |
# Use binstubs directly | |
PATH_add bin | |
# Web server port | |
export PORT=3000 | |
# MySQL config directory | |
export MYSQL_HOME=./config |
View .envrc
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
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then | |
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8=" | |
fi | |
use flake | |
PATH_add bin |
View app.js
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 Uploaders = {} | |
Uploaders.S3 = function (entries, onViewError) { | |
entries.forEach(entry => { | |
let xhr = new XMLHttpRequest() | |
onViewError(() => xhr.abort()) | |
xhr.onload = () => (xhr.status === 200 ? entry.done() : entry.error()) | |
xhr.onerror = () => entry.error() | |
xhr.upload.addEventListener("progress", event => { | |
if (event.lengthComputable) { |
OlderNewer