diff --git a/posts/2006/02/obligatory-post-about-ruby-on-rails.md b/posts/2006/02/obligatory-post-about-ruby-on-rails.md index 7a51136..c8310f5 100644 --- a/posts/2006/02/obligatory-post-about-ruby-on-rails.md +++ b/posts/2006/02/obligatory-post-about-ruby-on-rails.md @@ -64,9 +64,9 @@ Tags: rails, coding, hacking, migration, rails, testing
⌃W)⌫)⇧⌘↓)⌫)⇧⌘↓)If you have XP Home then the best you can do is run this script from your Startup folder (Start -> All Programs -> Startup), but that is not really going to work because eventually Windows will not even let you log in until you activate it. What a P.O.S.
+If you have XP Home then the best you can do is run this script from your Startup folder (Start -> All Programs -> Startup), but that is not really going to work because eventually Windows will not even let you log in until you activate it. What a P.O.S.
@echo off diff --git a/posts/2007/05/a-scheme-parser-in-haskell-part-1.md b/posts/2007/05/a-scheme-parser-in-haskell-part-1.md index bf2e830..4ae329a 100644 --- a/posts/2007/05/a-scheme-parser-in-haskell-part-1.md +++ b/posts/2007/05/a-scheme-parser-in-haskell-part-1.md @@ -9,7 +9,7 @@ Tags: coding, haskell From Write Yourself a Scheme in 48 hours:-I really like this tutorial. I'm only on part 3.3 of 12, parsing, but I'm new to Haskell so I'm learning left, right & centre. The exercises are taking me hours of reading and experimenting, and it's lots of fun! ghc's errors are usually quite helpful and of course ghci is a big help as well. @@ -28,7 +28,7 @@ Okay that's pretty simple right? Let's break it down, first looking at the right *Basically, a monad is a way of saying "there's some extra information attached to this value, which most functions don't need to worry about". In this example, the "extra information" is the fact that this action performs IO, and the basic value is nothing, represented as "()". Monadic values are often called "actions", because the easiest way to think about the IO monad is a sequencing of actions that each might affect the outside world.
+Basically, a monad is a way of saying "there's some extra information attached to this value, which most functions don't need to worry about". In this example, the "extra information" is the fact that this action performs IO, and the basic value is nothing, represented as "()". Monadic values are often called "actions", because the easiest way to think about the IO monad is a sequencing of actions that each might affect the outside world.
liftM is concisely and effectively defined elsewhere, and I'll borrow their description:
-+
liftM f mlets a non-monadic functionfoperate on the contents of monadm
liftM f mlets a non-monadic functionfoperate on the contents of monadm
liftM's type is also quite telling: liftM :: (Monad m) => (a -> b) -> (m a -> m b)
diff --git a/public/f/localstorage.html b/public/f/localstorage.html
index 1e3f562..a677861 100644
--- a/public/f/localstorage.html
+++ b/public/f/localstorage.html
@@ -2,9 +2,9 @@
diff --git a/public/f/note.html b/public/f/note.html
index d0870af..d4166e2 100644
--- a/public/f/note.html
+++ b/public/f/note.html
@@ -13,12 +13,12 @@
if (timeout) clearTimeout(timeout);
timeout = setTimeout(saveNote, 100);
});
- restoreNote();
- note.focus();
+ restoreNote();
+ note.focus();
});
function saveNote() {
localStorage.note = note.innerText;
- timeout = null;
+ timeout = null;
}
function restoreNote() {
note.innerText = localStorage.note || '';
diff --git a/public/images/manifest.json b/public/images/manifest.json
index 9570cdb..1ba0063 100644
--- a/public/images/manifest.json
+++ b/public/images/manifest.json
@@ -1,16 +1,16 @@
{
- "name": "",
- "icons": [
- {
- "src": "\/images\/android-chrome-192x192.png",
- "sizes": "192x192",
- "type": "image\/png"
- },
- {
- "src": "\/images\/android-chrome-256x256.png",
- "sizes": "256x256",
- "type": "image\/png"
- }
- ],
- "theme_color": "#ffffff"
+ "name": "",
+ "icons": [
+ {
+ "src": "\/images\/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image\/png"
+ },
+ {
+ "src": "\/images\/android-chrome-256x256.png",
+ "sizes": "256x256",
+ "type": "image\/png"
+ }
+ ],
+ "theme_color": "#ffffff"
}