Skip to content

Instantly share code, notes, and snippets.

View hoorayimhelping's full-sized avatar

Bucky Schwarz hoorayimhelping

View GitHub Profile
diff --git a/static/jsx/leasing/rate.jsx b/static/jsx/leasing/rate.jsx
index 0dd9b6da2..c3df9ab02 100644
--- a/static/jsx/leasing/rate.jsx
+++ b/static/jsx/leasing/rate.jsx
@@ -1,24 +1,39 @@
// See realestate_db/models Rate class
class RateModel {
+ static Flat = 'Flat';
+ static IG = 'IG';
+ static IGUnknownPass = 'IGUnknownPass';
javascript limit = { upper: 50, lower: 1 }
arr2 = [13,4,5,6,7,8,9];
function checkThreshold(curr) { return curr > this.lower; }
console.log(arr2.every(checkThreshold, limit)) // returns true
console.log(arr2.every((curr) => curr > this.lower, limit)) // returns false
@hoorayimhelping
hoorayimhelping / object-assign.js
Created March 2, 2017 18:59 — forked from MrAlexLau/object assign
object.assign vs the spread operator
const a = { foo: 'foo'};
const b = { bar: 'bar'};
// the wrong way
const result = Object.assign(a, b);
console.log(a)
// { foo: 'foo', bar: 'bar' }
// this is usually bad, we usually don't want to mutate `a` in most cases
// The right ways:
diff --git a/src/api/pcp-service-request.js b/src/api/pcp-service-request.js
index 1a82b9d..f5c5718 100644
--- a/src/api/pcp-service-request.js
+++ b/src/api/pcp-service-request.js
@@ -5,8 +5,126 @@ import { getServiceRequestStatus } from '../utils/service-request-status';
import { sortByDateAsc } from '../utils/moyo';
import { buildMoyoServerRequestObject } from '../utils/server-request';
import { MOYO_API_QUERY, MOYO_API_WRITE } from '../constants';
-import _ from 'lodash';
export { USER_ID_HEADER, REQUEST_ID_HEADER } from '../settings';
import { COLLAB_AUTH_NAME, COLLAB_AUTH_PASSWORD } from '../settings';
import ServerRequest from 'qh-common/server/utils/server-request';
export const buildServerRequestObject =
(req = null, basicAuthName = COLLAB_AUTH_NAME, basicAuthPassword = COLLAB_AUTH_PASSWORD) => {
let serverRequest = new ServerRequest(basicAuthName, basicAuthPassword);
if (req) {
serverRequest.setHeaders(serverRequest.defaultHeadersFromReq(req));
(/tmp/form-init238341861831517123.clj:1:72)
web_1 | at clojure.lang.Compiler.load(Compiler.java:7406)
web_1 | at clojure.lang.Compiler.loadFile(Compiler.java:7332)
web_1 | at clojure.main$load_script.invokeStatic(main.clj:275)
web_1 | at clojure.main$init_opt.invokeStatic(main.clj:277)
web_1 | at clojure.main$init_opt.invoke(main.clj:277)
web_1 | at clojure.main$initialize.invokeStatic(main.clj:308)
web_1 | at clojure.main$null_opt.invokeStatic(main.clj:342)
web_1 | at clojure.main$null_opt.invoke(main.clj:339)
web_1 | at clojure.main$main.invokeStatic(main.clj:421)
diff --git a/package.json b/package.json
index db836d6..dfe2fca 100644
--- a/package.json
+++ b/package.json
@@ -60,7 +60,7 @@
"node-sass": "^3.4.2",
"parse-link-header": "^0.4.1",
"purecss": "^0.6.0",
- "qh-common": "quartethealth/qh-common#v2.8.2",
+ "qh-common": "quartethealth/qh-common#v2.8.4",

Keybase proof

I hereby claim:

  • I am hoorayimhelping on github.
  • I am hoorayimhelping (https://keybase.io/hoorayimhelping) on keybase.
  • I have a public key whose fingerprint is 8613 87AE 1FD3 DE9B 2066 8066 5F4E E8B8 F39B 1B4D

To claim this, I am signing this object:

commit 55b124311c6426425e0c75d0ed7109314d8bc13f
Author: Bucky Schwarz <d.w.schwarz@gmail.com>
Date: Mon Apr 11 21:54:10 2016 -0400
Simple versioning on the readme
diff --git a/README.md b/README.md
index a960b8f..a90ee46 100644
--- a/README.md
+++ b/README.md