This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
import Http | |
import Markdown | |
import Html exposing (Html) | |
import Task exposing (Task, andThen) | |
import Time exposing (every, second) | |
main : Signal Html | |
main = Signal.map Markdown.toHtml readme.signal |
import Signal exposing (Address,Mailbox,mailbox) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onClick,on,targetValue) | |
import Task exposing (Task,andThen) | |
import Http exposing (multipart,stringData) | |
import Time exposing (every,second) | |
main : Signal Html |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
; Reverse Scrolling Script by How-To Geek | |
; | |
; http://www.autohotkey.com/docs/Tutorial.htm | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
WheelUp:: | |
Send {WheelDown} |
{-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses, | |
TemplateHaskell, OverloadedStrings #-} | |
import Yesod | |
data YesodFib = YesodFib | |
mkYesod "YesodFib" [parseRoutes| | |
/ HomeR GET | |
|] |
javascript:(function(){_readableOptions={'text_font':'Goergia,%20Palatino','text_font_monospace':'Inconsolata','text_font_header':'quote(Times%20New%20Roman),%20Times,%20serif','text_size':'20px','text_line_height':'1.5','box_width':'30em','color_text':'#657B83','color_background':'#FDF6E3','color_links':'#B58900','text_align':'justified','base':'web_readability','custom_css':'pre%20{%20%20%20%20background-color:%20#EEE8D5;%20%20%20%20color:%20#586E75;%20%20%20%20padding:%201em;%20%20%20%20overflow:%20auto;}'};if(document.getElementsByTagName('body').length>0);else{return;}if(window.$readable){if(window.$readable.bookmarkletTimer){return;}}else{window.$readable={};}window.$readable.bookmarkletTimer=true;window.$readable.options=_readableOptions;if(window.$readable.bookmarkletClicked){window.$readable.bookmarkletClicked();return;}_readableScript=document.createElement('script');_readableScript.setAttribute('src','http://readable-static.tastefulwords.com/target.js?rand='+encodeURIComponent(Math.random()));docum |
brew mirror-check wget | |
==> Testing mirrors for wget | |
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.bz2 | |
Warning: Failed to create the file | |
Warning: /Library/Caches/Homebrew/wget-1.13.4.tar.bz2: No such file or | |
Warning: directory | |
0,1% | |
curl: (23) Failed writing body (0 != 1183) | |
Error: uninitialized constant Formula::DownloadError | |
Please report this bug: |
~ brew --config | |
HOMEBREW_VERSION: 0.9 | |
HEAD: 4f16573afa069d13c1fe5d4a7ebcf52cc403bed4 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: quad-core 64-bit sandybridge | |
OS X: 10.7.3 | |
Kernel Architecture: x86_64 | |
Xcode: 4.3.2 | |
GCC-4.0: N/A |
## First version | |
We can consider two parts. | |
The first being mostly some boilerplate[^011]. | |
And the second part more focused on OpenGL and content. | |
[^011]: Generally in Haskell you need to declare a lot of import lines. | |
This is something I find annoying. | |
In particular, it should be possible to create a special file, Import.hs | |
which make all the necessary import for you, as you generally need them all. |
cabal-dev install | |
Resolving dependencies... | |
cabal: Could not resolve dependencies: | |
trying: inmanis-0.0.0 (user goal) | |
trying: http-conduit-1.4.1.10 (dependency of inmanis-0.0.0) | |
trying: base64-bytestring-0.1.2.0 (dependency of http-conduit-1.4.1.10) | |
trying: attoparsec-0.10.2.0 (dependency of http-conduit-1.4.1.10) | |
trying: yesod-test-0.2.1 (dependency of inmanis-0.0.0) | |
trying: HUnit-1.2.4.2/installed-6a8... (dependency of yesod-test-0.2.1) | |
next goal: yesod-platform (dependency of inmanis-0.0.0) |