After downloading, running elm-make
in the extracted directory should yield a renderable example.html
.
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
### | |
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
###. things to watch out for: | |
### - Check out the `nix-darwin` instructions, as they have changed. | |
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
### | |
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
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
--- | |
created: <% tp.file.creation_date() %> | |
--- | |
tags:: [[+Daily Notes]] | |
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %> | |
<< [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').subtract(1, 'd').format('YYYY-MM-DD-dddd') %>|Yesterday]] | [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').add(1, 'd').format('YYYY-MM-DD-dddd') %>|Tomorrow]] >> | |
--- |
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
#!/bin/bash | |
set -euo pipefail | |
# uncomment to debug | |
# set -x | |
echo "1️⃣. Does catalina know to create the nix directory?" | |
if ! grep nix /etc/synthetic.conf > /dev/null 2>&1; then | |
echo "nix missing from /etc/synthetic.conf. Adding it (will request sudo)" | |
echo "nix" | sudo tee -a /etc/synthetic.conf > /dev/null |
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
#!/bin/bash | |
# | |
# usage: invalidate-old-elm "src directories space delimeted" BRANCH_TO_COMPARE OPTIONAL_BRANCH_TO_COMPARE_DEFAULTS_TO_HEAD | |
# git diff --name-only gives us relative paths from git root | |
# git rev-parse --show-prefix this fetches the current directory's relative prefix to the git root | |
# we remove the prefix | |
prefix=$(git rev-parse --show-prefix) | |
for file in $(git diff --name-only $2 $3 | grep .elm$) |
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
{ | |
"name": "test_repro", | |
"version": "1.0.0", | |
"lockfileVersion": 1, | |
"requires": true, | |
"dependencies": { | |
"ajv": { | |
"version": "5.5.2", | |
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", | |
"integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", |
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
class Value | |
# alias_method is private, wah wah | |
singleton_class.send(:alias_method, :old_new, :new) | |
def self.new(*fields, &block) | |
klass = old_new(*fields, &block) | |
klass.instance_eval do | |
# Rails' as_json function calls `to_hash` internally and falls back to using `instance_variables`. | |
# `instance_variables` returns Value's internal `hash` attribute which we are not interested in. |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<select id="backgroundColorSelector"> | |
<option value="blue">Blue</option> | |
<option value="yellow">Yellow</option> | |
<option value="red">Red</option> | |
<option value="coral">Coral</option> | |
</select> |
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
module CounterList where | |
import Counter | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
-- MODEL | |
type alias Model = |
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
All it took to make him smile? | |
Pretend that you're a garbage pile | |
You spent that trip in mom's lap | |
Covering her with puke and crap | |
That pukey fucker, that little buster | |
Now with less puke, and golden luster! | |
He'll wake up at the dawn's ass crack |
NewerOlder