Skip to content

Instantly share code, notes, and snippets.

View deepakjois's full-sized avatar
🎯
Focusing

Deepak Jois deepakjois

🎯
Focusing
View GitHub Profile
@deepakjois
deepakjois / futurelearn_dl.sh
Last active December 30, 2017 23:07 — forked from nonsleepr/futurelearn_dl.sh
FutureLearn Video downloader (with aria2c and resume support)
#!/bin/bash
#
# Usage:
# > futurelearn_dl.sh login@email.com password course-name week-id
# Where *login@email.com* 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
@deepakjois
deepakjois / Makefile
Last active August 29, 2015 14:18 — forked from isaacs/Makefile
# 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.
@deepakjois
deepakjois / 3sync.go
Last active August 29, 2015 14:18 — forked from rossdylan/3sync.go
package main
import (
"crypto/md5"
"flag"
"fmt"
"io"
"launchpad.net/goamz/aws"
"launchpad.net/goamz/s3"
"os"
@deepakjois
deepakjois / installing-ghc7.2-osx10.7.md
Created January 26, 2012 17:53 — forked from beastaugh/installing-ghc7.2-osx10.7.md
Installing GHC 7.2 on Mac OS X 10.7 Lion

Installing GHC 7.2 on Mac OS X

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.

@deepakjois
deepakjois / README.md
Created January 26, 2012 17:30 — forked from cartazio/gist:1655271
Installing GHC 7.2.2 and diagrams on OS X Lion

Installing GHC 7.2.2 and diagrams on OS X Lion

Install prerequisites

GHC 7.2.2 64-bit

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

  • Follow instructions in this [gist][ghcinstallgist]. However, note that the patch for 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