Skip to content

Instantly share code, notes, and snippets.

View k1m190r's full-sized avatar

k1m190r k1m190r

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def reqSP(cookie, root, subsite, opn, folder, file = ''):
"""
site - site or subsite
opn - operation name {'FilesFolders, Folders, Files, FileData, Properties, ParentFolder'}
folder - folder path from site/subsite level no slashes before or after
file - file name no slashes, if not file - folder operation is assumed
"""
# constructing URL for the REST API request
# as per: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service
@k1m190r
k1m190r / FRP iOS Learning resources.md
Created January 23, 2016 07:41 — forked from JaviLorbada/FRP iOS Learning resources.md
The best FRP iOS resources.

Videos

@k1m190r
k1m190r / Datomic News Updates
Created June 20, 2012 08:39 — forked from stuarthalloway/Datomic News Updates
Datomic update examples against a social news database
;; Datomic example code
;; demonstrates various update scenarios, using a news database
;; that contains stories, users, and upvotes
;; grab an in memory database
(use '[datomic.api :only (q db) :as d])
(def uri "datomic:mem://foo")
(d/create-database uri)
(def conn (d/connect uri))
@k1m190r
k1m190r / gist:2900464
Created June 9, 2012 10:30
How to find entities that do not have a particular attribute?
(use '[datomic.api :only [q db] :as d]
'clojure.pprint
'clojure.repl)
(do
(def *uri "datomic:mem://likes")
(d/create-database *uri)
(def *conn (d/connect *uri)))
;; define utilities