This file contains hidden or 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
| {"photo": | |
| {"id":"straw00267"}, | |
| "annotations":[ | |
| { | |
| "x":19, | |
| "y":20, | |
| "w":50, | |
| "h":50, | |
| "predictions": { | |
| "green":0.2, |
This file contains hidden or 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
| { | |
| id: 1, | |
| name: "1", | |
| number: 1, | |
| lat: "34.179444444", | |
| lng: "-119.140961111", | |
| latlng: null, | |
| planted_at: null, | |
| uuid: "f97e61a0-6647-0132-d30b-5651f5fc0983", | |
| rev: "19-1a2b076b1a5a756ff8fec30e8b4c2fd6", |
This file contains hidden or 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
| #!/bin/bash | |
| set -x | |
| set -e | |
| export APP_NAME=staging-webfarmforeman | |
| export NEW_DB_NAME=HEROKU_POSTGRESQL_JADE | |
| heroku addons:add pgbackups --app $APP_NAME | |
| heroku addons:add heroku-postgresql:hobby-basic --app $APP_NAME | |
| heroku pg:wait --app $APP_NAME |
This file contains hidden or 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
| import numpy as np, matplotlib.pyplot as plt | |
| # ---------------------------------------------------------------- | |
| # simply draws a thin-lens at the provided location | |
| # parameters: | |
| # - z: location along the optical axis (in mm) | |
| # - f: focal length (in mm, can be negative if div. lens) | |
| # - diam: lens diameter in mm | |
| # - lbl: label to identify the lens on the drawing | |
| # ---------------------------------------------------------------- |
This file contains hidden or 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
| <link rel="import" href="../core-scaffold/core-scaffold.html"> | |
| <link rel="import" href="../core-header-panel/core-header-panel.html"> | |
| <link rel="import" href="../core-menu/core-menu.html"> | |
| <link rel="import" href="../core-item/core-item.html"> | |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-menu/core-submenu.html"> | |
| <polymer-element name="my-element"> |
This file contains hidden or 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
| #!/bin/bash | |
| # FIXME: | |
| # WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.8.0 | |
| NOKOGIRIR_VERSION=${1:-1.6.1} | |
| LIBXML_VERSION=${2:-2.9.1} | |
| LIBXSLT_VERSION=${3:-1.1.28} | |
| gem uninstall nokogiri libxml-ruby |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <form id='m2xform' action="#"> | |
| <input name='m2xApiKey' placeholder='m2x api key' value='3fef5d69c3a7eab559b733ba854baef1' > | |
| </form> | |
| <pre id='m2xexample'>m2x</pre> |
This file contains hidden or 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
| require 'fog' | |
| auth_url = ENV['OS_AUTH_URL'] | |
| username = ENV['OS_USERNAME'] | |
| password = ENV['OS_PASSWORD'] | |
| tenant = ENV['OS_TENANT_NAME'] # String | |
| compute_client ||= ::Fog::Compute.new(:provider => :openstack, | |
| :openstack_api_key => password , | |
| :openstack_username => username , |
This file contains hidden or 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
| [] |
This file contains hidden or 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
| Vagrant.configure(2) do |config| | |
| config.ssh.forward_agent = true | |
| config.vm.define "www", :primary=>true do |www| | |
| end | |
| # ================================================ |