This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AUTHOR: | |
| # deepak.jois@gmail.com | |
| # (w/ credit to: http://www.brownfort.com/2014/09/scrap-websites-ruby/) | |
| # | |
| # DESCRIPTION: | |
| # Dumps a list of direct, unprotected CDN links to Coursera | |
| # lecture videos, and downloads English subtitles (.txt,.srt) for them. | |
| # | |
| # USAGE: | |
| # ruby fetchlinks.rb <username> <password> <coursename> <section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/md5" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "launchpad.net/goamz/aws" | |
| "launchpad.net/goamz/s3" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Testing | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage : ruby bookjetty.rb username password filename_to_save | |
| require 'rubygems' | |
| require 'mechanize' | |
| agent = WWW::Mechanize.new | |
| agent.user_agent = "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2" | |
| page = agent.get("http://www.bookjetty.com") | |
| login_form = page.forms[1] | |
| # Login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| twitter_user :: MVar (Maybe AuthUser) | |
| twitter_user = unsafePerformIO (newMVar Nothing) | |
| setTwitterUser :: IO () | |
| setTwitterUser = do | |
| putStr "User name: " | |
| u <- getLine | |
| putStr "User password: " | |
| p <- getLine | |
| modifyMVar_ twitter_user (\ _ -> return $ Just (AuthUser u p)) |
OlderNewer