background preloader

Functional

Facebook Twitter

Google docs import with oauth2. In Google Oauth2 VBA authentication I covered how to use oauth2 from VBA.

Google docs import with oauth2

Elsewhere on this site you'll see other ways to get data out of google Spreadsheets such as Promises in VBA and Google Visualization. Neither of those used oAuth2 so they were limited to public facing spreadsheets. Now here is how to get private data into Excel. You'll find these examples and libraries in googleImport.xlsm in the Downloads section, or you can get the code via gistthat - you'll need the crest manifest. It's also in the combination workbook, cDataSet.xlsm which has pretty much everything on this site in it. Approach Example Let's say that we want to pick up an entire workbook from Google Spreadsheets that is private only to you. Public Sub testWorkBookImport() Dim key As String key = "0At2ExLh4POiZdE43aGo4TENEWlVOeFBkRlVPcEhIbnc" If Not importGoogleWorkbook(key, , , True) Then MsgBox ("failed to import workbook at " & key) End If End Sub The arguments are follows and should be fairly self-explanatory.

Functional Programming HOWTO. In this document, we’ll take a tour of Python’s features suitable for implementing programs in a functional style.

Functional Programming HOWTO

After an introduction to the concepts of functional programming, we’ll look at language features such as iterators and generators and relevant library modules such as itertools and functools. Introduction This section explains the basic concept of functional programming; if you’re just interested in learning about Python language features, skip to the next section on Iterators.

Programming languages support decomposing problems in several different ways: Most programming languages are procedural: programs are lists of instructions that tell the computer what to do with the program’s input. The designers of some computer languages choose to emphasize one particular approach to programming. In a functional program, input flows through a set of functions. Functional programming can be considered the opposite of object-oriented programming. Formal provability Modularity Iterators. Tail call. Description[edit] When a function is called, the computer must "remember" the place it was called from, the return address, so that it can return to that location with the result once the call is complete.

Tail call

Typically, this information is saved on the call stack, a simple list of return locations in order of the times that the call locations they describe were reached. For tail calls, there is no need to remember the place we are calling from – instead, we can perform tail call elimination by leaving the stack alone (except possibly for function arguments and local variables[1]), and the newly called function will return its result directly to the original caller. Besides space and execution efficiency, tail call elimination is important in the functional programming idiom known as continuation passing style (CPS), which would otherwise quickly run out of stack space.

Syntactic form[edit] A tail call can be located just before the syntactical end of a subroutine: Now consider this code: Clojure Tutorials. 5 Free E-Books on Haskell. There's been a lot of love lately for Clojure (which Heroku now supports), Scala (used at Twitter among other places) and Erlang (used by Facebook among other places).

5 Free E-Books on Haskell

But if you're interested in functional programming, don't forget about Haskell. Try Haskell Before checking out the books below, you can check out Try Haskell an interactive, browser based tutorial. This will give you an overview of the language and help you decide if Haskell is right for you. Learn You a Haskell for Great Good Learn You a Haskell for Great Good is available as a print book or for free online. Real World Haskell Real World Haskell by Bryan O'Sullivan, Don Stewart, and John Goerzen was published by O'Reilly Media and is available online. Yet Another Haskell Tutorial Yet Another Haskell Tutorial (PDF) by Hal Daume´ III is a 182 page tutorial that assumes no programming experience, functional or otherwise. A Gentle Introduction to Haskell Haskell: Functional Programming with Types More Stuff.

.bodycard xxxx