279 karma · joined February 5, 2011
pascal 1 = [1]
pascal 2 = [1,1]
pascal n = [1] ++ sum' (pascal (n - 1))
sum' [] = []
sum' [1] = [1]
sum' (x:xs) = [x + head' xs] ++ sum' xs
head' [] = 0
head' xs = head xs
show' :: Int -> String show' x
|((rem x 3 == 0) && (rem x 5 == 0)) = "FizzBuzz"
|rem x 3 == 0 = "Fizz"
|rem x 5 == 0 = "Buzz"
|otherwise = show x
main :: IO ()
main = putStrLn $ foldl (\acc x -> acc ++"\n" ++ show' x) "" [1..100]
The story ends with OMG!!! Ruby is still awesome.
Bring on some nice visual analytics on Indian students in US.
The first cell phone was developed in 1947 http://en.wikipedia.org/wiki/History_of_mobile_phones
The Internet starts in 1950 http://en.wikipedia.org/wiki/History_of_the_Internet
Tablet computers were prototyped in 1968 http://en.wikipedia.org/wiki/Dynabook
It's the economic improvement since that created the iPad. iPad is not in anyway comparable to the technological innovation in 1960 that put a man to the moon.
It's like someone using VS2010 and C# 4.0 seeing the SICP book for the first time, or a chance encounter with LISP. And you would know we didn't improve that much since the days we put a man on the moon.
So even though the country at large is poor, 130 million people could become your potential customers, spending on par with other wealthy nations in the west.
The idea is you have a lawyer draft a complex agreement with multiple fee arrangements, most involving some math. And provide an invoice with pre-agreed work descriptions. Lawyers use UTBMS. You should be able to come up with something that you and your client agree. This makes your invoice look more "professional" and easy for the accounting departments of your clients.
Folks who don't get h1b or green cards often apply for Australia, U.K or Canada. Recent additions to the list are Germany, Scandinavian countries(petroleum), Dubai, Singapore, brazil. Many of these countries offer a comparable standard of living, and government incentives for immigration and establishment of businesses. Also some cities in india and china are fast becoming vc magnets. There may be a day soon when venture capital too gets Bangalored.