chmod +x strip-js-comments.mjs
npm install --save @babel/generator
npm install --save @babel/parser
./strip-js-comments.mjs assets/js/script.js
{-# LANGUAGE BlockArguments, BangPatterns, LambdaCase, NoMonomorphismRestriction #-} | |
import Control.Monad.State.Strict | |
import Data.List | |
import Data.Bifunctor | |
import Data.Maybe | |
forEach xs st f = snd $ foldM (\st x -> runState (f x) st) st xs | |
alterF = modify . first | |
alterS = modify . second | |
getF = gets fst |
{-# LANGUAGE BlockArguments, Strict, LambdaCase, NoMonomorphismRestriction, MultiWayIf #-} | |
import Control.Monad.State.Strict | |
import Data.List | |
import Data.Char | |
import Data.Ord hiding (Down) | |
import Data.Bifunctor | |
import Data.Function | |
import Data.Functor.Identity | |
import Debug.Trace |
After a couple hesitating months to move to github pages, and from my hacked together static site generator, yesterday was my 4th attempt in getting started with github pages blogging, just because there where a few annoyances with the different variations I've tried.
Decided to go with Octopress, just for their nice logo. And for their Github pages oriented focus. That didn't pan out, but at least I learned a few things about their blogging process and setup, which I'm adapting for sculpin.
In the last couple of days I've typed away at some Ansible automation, and one specific group of tasks I dealt with was the creation of a target symlink and parent directories. I wasn't able to do this in one go, and thus arrived at the following result:
- name: "absolute home {{ config_path }}"
set_fact:
absolute_home_config_path: "{{ user_home_dir + '/.' + config_path }}"
- name: "{{ absolute_home_config_path|dirname }} present"
This document was based on my local [GNU Guile][1]-3.0.5 setup. I'm not sure if it works as is with an older version of GNU Guile.
Because of a [dependency in Fedora][2] I had to compile GNU Guile from source release. As such, in your local setup the paths will differ. This is only relevant when defining the GUILE shell variable, and referencing the tags file in the vimrc.
Note that when building GNU Guile from source be sure that you have the readline-devel (or distro equivalent package) installed. That way the
./configure
step will pick that up, and theice-9 readline
module will be usable.
It should work by default when connected, however you might reach this page with the same issue I had, where you where missing a few essential steps.
- Be sure that your PSP is set into USB mode: Settings -> USB connection
- Be sure the kernel module
usb-storage
is enabled, you can check withsudo modinfo usb-storage
and enable it withsudo modprobe usb-storage
- Reconnect your cable after trying any of the previous steps
- If it doesn't get automounted, run dmesg to find the device (on my local machine it's sdb as seen in the output) and mount it manually (prefered with your user access rights so you don't have to use sudo for file copy)
%.hex: %.asm | |
avra -fI $< | |
rm *.eep.hex *.obj *.cof | |
all: $(patsubst %.asm,%.hex,$(wildcard *.asm)) | |
upload: ${program}.hex | |
avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$< | |
monitor: |