Amuse Bouches from the World of B: Hatyara

Under pain of  the Godfather treatment (“Either your brains or your signature will be on that paper“) by friend, spiritual guide and mah homie from tha hood Nangafakir I present to you dear reader  my first blog-post:


This film is the best offering by TLV Prasad I have seen thus far. I would go as far to say it is Ω (Gunda) since much attention has been given to dialogues and action sequences.
Here are a few choice items that I, gourmet-chef that I am,  exclusively selected for your palate.
Nothing in the Marvel universe come close to the villainy on display in this exchange between Singhania and his brother in this clip.
In the following scene scene, Mithun rushes to Bulla’s lair to rescue his daughter. Bulla then proceeds to humiliate him in …well… an interesting way.
 
In the ensuing fight scene, Mithun punches Bulla to the ground. Shocked at knowing that Mithun has a second functional leg, 
 
Bulla:    Tu Langda nahin hain? 
Mithun: Dushmanon ki laashon par bhangda karne waala kabhi langda nahin ho saktha Singhania
 
The fight sequences below show the action director Rambo Rajkumar at his creative zenith. 
 
 

scrap

*/–>

/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.

Copyright (C) 2012-2013 Free Software Foundation, Inc.

The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.

As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.

@licend The above is the entire license notice
for the JavaScript code in this tag.
/
///–>

scrap

putStrLn "Hello"

α + β + γ

Author: Gaurish

Created: 2016-09-03 Sat 10:37

Emacs 24.5.1 (Org mode 8.2.10)

Validate

code{white-space: pre;}

table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; }
code > span.dt { color: #902000; }
code > span.dv { color: #40a070; }
code > span.bn { color: #40a070; }
code > span.fl { color: #40a070; }
code > span.ch { color: #4070a0; }
code > span.st { color: #4070a0; }
code > span.co { color: #60a0b0; font-style: italic; }
code > span.ot { color: #007020; }
code > span.al { color: #ff0000; font-weight: bold; }
code > span.fu { color: #06287e; }
code > span.er { color: #ff0000; font-weight: bold; }

In this gist we will first show that we can beat the arc challenge (http://www.paulgraham.com/arcchallenge.html), and then build the library that shows how we did it. This gist is Literate Haskell and is of course executable.

Let’s start with some imports (for now, you can ignore these)

{-# LANGUAGE GADTs, TypeSynonymInstances #-}
module ArcChallenge where

import Control.Applicative
import Control.Monad (ap)
import Control.Monad.Identity (Identity (..))
import Control.Monad.Reader
import Control.Concurrent.MVar
import Control.Monad.Trans
import qualified Data.ByteString.Lazy.Char8 as B
import qualified Data.Map as M

Here’s the actual program for the arc challenge. It’s only 13 nodes total:

-- | This documentation includes two blocks of code:
--
-- @
--     f x = x + x
-- @
--
-- >  g x = x * 42

α + β

import Numeric
mid3 :: Integral a => a -> Either String String
mid3 n |   m < 100 = Left "is too small"
       |    even l = Left "has an even number of digits"
       | otherwise = Right . take 3 $ drop ((l-3) `div` 2) s
  where m = abs n
        s = showInt m ""
        l = length s
 
showMid3 :: Integer -> String
showMid3 n = show n ++ ": " ++ either id id (mid3 n)
 
main :: IO ()
main = mapM_ (putStrLn . showMid3) [
  123, 12345, 1234567, 987654321, 10001, -10001, -123, -100, 100, -12345,
  1, 2, -1, -10, 2002, -2002, 0]

Lorem Ipsum

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum” (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, “Lorem ipsum dolor sit amet..”, comes from a line in section 1.10.32.

$\alpha + \beta$

smiling-buddha