This is a brief and bare-bones guide to getting GHC 7.2 and the cabal-install
tool (the two basic things you'll need to do Haskell development) up and running
on a new Mac OS X 10.7 install.
The instructions given here worked for me, but YMMV.
#!/bin/bash | |
# | |
# Usage: | |
# > futurelearn_dl.sh [email protected] password course-name week-id | |
# Where *[email protected]* and *password* - your credentials | |
# ,*course-name* is the name from URL | |
# and *week-id* is the ID from the URL | |
# | |
# E.g. To download all videos from the page: https://www.futurelearn.com/courses/corpus-linguistics/todo/238 |
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
package main | |
import ( | |
"crypto/md5" | |
"flag" | |
"fmt" | |
"io" | |
"launchpad.net/goamz/aws" | |
"launchpad.net/goamz/s3" | |
"os" |
Make sure you have the 64-bit version of GHC. If you installed GHC using brew install haskell-platform
, you are using the 32-bit version which wont work with the instructions below. To install the 64-bit version
cabal-install
that they point to is not available anymore. There is a similar patch in [this gist][cabalinstallgist], which worked for me. Read [this comment][cabalinstallcomment] for more info on how to apply the patch.// get the list of twitter usernames from the html of an element (entered in CMS) and then display. | |
$($("#twitterlist p").html().split(",")).each( function(i) { | |
$.trim(this); | |
$("#twitter-users").append($("<div/>").attr({id: "user-" + i, class: "item"})); | |
getTwitters('user-' + i, { | |
id: this, | |
count: 1, | |
enableLinks: true, | |
ignoreReplies: true, |
class Canine | |
VERSION = '1.3' | |
def initialize(&block) | |
@commands = Hash.new | |
@default = @latest = :commands | |
@empty = nil | |
@auto = { | |
:commands => hash_command("commands","Show a list of commands",Proc.new { | |
@commands.each { |cmd| c = cmd[1] | |
name = c[:name].to_s |