Skip to content

Instantly share code, notes, and snippets.

View stuartf's full-sized avatar

D. Stuart Freeman stuartf

  • Georgia Institute of Technology
  • Atlanta, GA, USA
View GitHub Profile
@stuartf
stuartf / gist:1154485
Created August 18, 2011 16:39
runtime widget config
def enableInPortal(path, server)
json = ""
c = Curl::Easy.new("#{server}/#{path}")
if c.http_get
json = JSON.parse(c.body_str)
json["personalportal"] = true
postJsonAsFile(path, json.to_s(), server)
end
end