This file contains 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 "fmt" | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
i, j := 0, 1 | |
return func() int { | |
k := i |
This file contains 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
def find_current_snapshot_id(dataset_id): | |
url = base_url + "datasets/" + dataset_id | |
r = requests.get(url, headers=headers) | |
dataset = r.json() | |
return dataset['current_snapshot']['id'] | |
def get_matching_rows(snapshot_id, limit=1000, search_string=None, field=None): | |
q = "&query={}".format(search_string) if search_string is not None else "" | |
url = "{base}snapshots/{ss}?row_limit={lim}{q}".format(**{'base': base_url, 'ss': snapshot_id, 'lim': limit, 'q': q}) | |
r = requests.get(url, headers=headers) |
This file contains 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
javascript:(function()%7Bfunction R(w)%7Btry%7Bvar d%3Dw.document,j,i,t,T,N,b,r%3D1,C%3Bfor(j%3D0%3Bt%3D%5B"object","embed","applet","iframe"%5D%5Bj%5D%3B%2B%2Bj)%7BT%3Dd.getElementsByTagName(t)%3Bfor(i%3DT.length-1%3B(i%2B1)%26%26(N%3DT%5Bi%5D)%3B--i)if(j!%3D3%7C%7C!R((C%3DN.contentWindow)%3FC:N.contentDocument.defaultView))%7Bb%3Dd.createElement("div")%3Bb.style.width%3DN.width%3B b.style.height%3DN.height%3Bb.innerHTML%3D"<del>"%2B(j%3D%3D3%3F"third-party "%2Bt:t)%2B"</del>"%3BN.parentNode.replaceChild(b,N)%3B%7D%7D%7Dcatch(E)%7Br%3D0%7Dreturn r%7DR(self)%3Bvar i,x%3Bfor(i%3D0%3Bx%3Dframes%5Bi%5D%3B%2B%2Bi)R(x)%7D)()%3B javascript:(function()%7Bvar newSS, styles%3D%27* %7B background: white ! important%3B color: black !important %7D :link, :link * %7B color: %230000EE !important %7D :visited, :visited * %7B color: %23551A8B !important %7D%27%3B if(document.createStyleSheet) %7B document.createStyleSheet("javascript:%27"%2Bstyles%2B"%27")%3B %7D else %7B newSS%3Ddocument.createElement(%27link%27)%3B newSS.r |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.