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 / urdu.sil
Last active August 29, 2015 14:20
Typesetting Urdu in SILE
\begin[papersize=a4,direction=RTL]{document}
\set[parameter=document.parindent,value=0pt]
\nofolios
\font[family=Jameel Noori Nastaleeq,language=urd,direction=RTL,script=Arab]
\font[size=48pt]
\begin{center}
’ٹوبہ ٹیک سنگھ‘ افسانہ کا جایزہ
\end{center}
\bigskip
\font[size=24pt]
@deepakjois
deepakjois / error.txt
Last active August 29, 2015 14:19
Errors on OS X with Kohinoor Devangari
This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014) (preloaded format=xetex)
restricted \write18 enabled.
entering extended mode
(./urdu.tex [1]
xdvipdfmx:fatal: sfnt: table not found...
Output file removed.
)
Error 256 (driver return code) generating output;
file urdu.pdf may not be valid.
@deepakjois
deepakjois / urdu.tex
Last active August 29, 2015 14:19
Typesetting Urdu in plain TeX
% Experiments in typing Urdu using only plain TeX.
\input eplain
\input bidi
\font\ur="Jameel Noori Nastaleeq:script=arabic:language=urdu" at 18pt
\font\hi="Ek Mukta Light:script=deva:language=hi" at 8pt
\font\urbig="Jameel Noori Nastaleeq:script=arabic:language=urdu" at 24pt
\font\urbigg="Jameel Noori Nastaleeq:script=arabic:language=urdu" at 48pt
\nopagenumbers
\parindent=0pt
\setRTL
@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 / fetch_links.rb
Last active August 29, 2015 14:18
Coursera Lectures (and Subtitles) Download
rc/Diagrams/TwoD/Path/Turtle/Internal.hs:75:19:
Not in scope: type constructor or class `Deg'
src/Diagrams/TwoD/Path/Turtle/Internal.hs:130:16:
Not in scope: type constructor or class `Deg'
src/Diagrams/TwoD/Path/Turtle/Internal.hs:130:23:
Not in scope: type constructor or class `Deg'
src/Diagrams/TwoD/Path/Turtle/Internal.hs:139:25:
as if it matters what we believe,
or think we know is true.
as if it matters what we do, or how we feel.
as if all-life-on-Earth cares what happens to us,
or to our species.
as if it makes a difference
whether we talk about what’s ahead
@deepakjois
deepakjois / yaml.go
Last active December 18, 2015 14:28
Is there a bug in the YAML decoder?
package main
import (
"fmt"
"encoding/json"
"launchpad.net/goyaml"
)
type Bar struct {