Skip to content

Instantly share code, notes, and snippets.

View andyparsons's full-sized avatar
:octocat:
Writing a code. Just the one, for now.

Andy S. Parsons andyparsons

:octocat:
Writing a code. Just the one, for now.
View GitHub Profile
[pencil-artifact] java -jar target/uberjar/pencil-artifact-0.0.1-standalone.jar master
Enter items in cart along with the quantities as follows "Cookies x 8, Cheesecakes x 4" :
Cookies x 8
Enter offer date if applicable else enter NA :
Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :day-of-week of protocol: #'clj-time.core/DateTimeProtocol found for class: nil
at clojure.core$_cache_protocol_fn.invokeStatic(core_deftype.clj:583)
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:575)
at clj_time.core$fn__377$G__206__382.invoke(core.clj:102)
at pencil_artifact.helper.offers$get_special_offers.invokeStatic(offers.clj:31)
[pencil-artifact] java -jar target/uberjar/pencil-artifact-0.0.1-standalone.jar cart-items-with-qty-string offer-date
Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :day-of-week of protocol: #'clj-time.core/DateTimeProtocol found for class: nil
at clojure.core$_cache_protocol_fn.invokeStatic(core_deftype.clj:583)
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:575)
at clj_time.core$fn__377$G__206__382.invoke(core.clj:102)
at pencil_artifact.helper.offers$get_special_offers.invokeStatic(offers.clj:31)
at pencil_artifact.helper.offers$get_special_offers.invoke(offers.clj:28)
at pencil_artifact.helper.offers$get_applicable_offers.invokeStatic(offers.clj:69)
at pencil_artifact.helper.offers$get_applicable_offers.invoke(offers.clj:62)
at pencil_artifact.helper.price$get_best_price.invokeStatic(price.clj:30)
Starting application ...
thread 'thread 'actix-rt:worker:15actix-rt:worker:14' panicked at '' panicked at 'called `Result::unwrap()` on an `Err` value: ErrorStack([Error { code: 151584876, library: "PEM routines", function: "get_name", reason: "no start line", file: "crypto/pem/pem_lib.c", line: 745, data: "Expecting: ANY PRIVATE KEY" }])called `Result::unwrap()` on an `Err` value: ErrorStack([Error { code: 151584876, library: "PEM routines", function: "get_name", reason: "no start line", file: "crypto/pem/pem_lib.c", line: 745, data: "Expecting: ANY PRIVATE KEY" }])', ', src/openssl_signer.rs:thread '33thread ':actix-rt:worker:11actix-rt:worker:019' panicked at 'src/openssl_signer.rscalled `Result::unwrap()` on an `Err` value: ErrorStack([Error { code: 151584876, library: "PEM routines", function: "get_name", reason: "no start line", file: "crypto/pem/pem_lib.c", line: 745, data: "Expecting: ANY PRIVATE KEY" }]):' panicked at '', called `Result::unwrap()` on an `Err` value: ErrorStack([Error { code: 15158487
Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Hardware accelerated
Rasterization: Hardware accelerated
Video Decode: Hardware accelerated
-- firms
select 'UPDATE users SET product_manufacturer_id = ' || firm_id || ' WHERE id = ' || user_id || ';' FROM (
(SELECT id AS user_id, company_id, email, (SELECT SUBSTRING(email FROM POSITION('@' IN email)+1)) AS domain FROM users) u
JOIN
(SELECT id AS firm_id, email, url, (SELECT SUBSTRING(email FROM POSITION('@' IN email)+1)) AS domain FROM companies) f ON u.domain = f.domain)
WHERE f.domain != '' AND
company_id IS NOT NULL AND
f.domain != 'kontor.com' AND
f.domain != 'gmail.com'
ORDER BY user_id;
ERROR in ./~/css-loader!./~/autoprefixer-loader?{"browsers":["last 2 version","ie >= 10"]}!./~/sass-loader?outputStyle=expanded&sourceMap&includePaths[]=/Users/andyparsons/code/gropius/resources/lib/bower_components&includePaths[]=/Users/andyparsons/code/gropius/resources/lib/sass!./src/entries/app/app.scss
Module build failed:
@import "modularized-normalize-scss/normalize";
^
File to import not found or unreadable: modularized-normalize-scss/normalize
Parent style sheet: /Users/andyparsons/code/gropius/resources/lib/sass/kontor.scss
in /Users/andyparsons/code/gropius/resources/lib/sass/kontor.scss (line 5, column 1)
@ ./src/entries/app/app.scss 4:14-403 13:2-17:4 14:20-409
ERROR in ./~/css-loader!./~/autoprefixer-loader?{"browsers":["last 2 version","ie >= 10"]}!./~/sass-loader?outputStyle=expanded&sourceMap&includePaths[]=/Users/andyparsons/code/gropius/resources/lib/bower_components&includePaths[]=/Users/andyparsons/code/gropius/resources/lib/sass!./src/components/not-found/not-found.scss
@andyparsons
andyparsons / gist:563c7e4dab956b1c85af
Created February 15, 2016 21:44
Cloudfront Cache Miss example
https://image2.kontor.com/b3c/b3cbde31-ab14-44a6-93c2-23ea8436cd46/orig.jpg?rect=2158%2C344%2C1034%2C1034&dpr=1&fit=max&h=400&q=80&w=1
Age:1350
Cache-Control:max-age=31536000
Connection:keep-alive
Content-Type:image/jpeg
Date:Mon, 15 Feb 2016 19:32:40 GMT
Transfer-Encoding:chunked
Via:1.1 e93599ff228cc924153b1db5ec11dc55.cloudfront.net (CloudFront)
X-Amz-Cf-Id:LkTZQMFfMypK76XAwvdqtfny-Q3_XLWNt2Uyy0x3mo0pmnSQY4eTZg==
@andyparsons
andyparsons / gist:d950c31753efe6342b6d
Created February 21, 2015 17:50
gropius build output
gropius|feature/frontend⚡ ⇒ lein npm run build
> gropius@0.1.0-SNAPSHOT build /Users/andy/code/kontor/gropius
> cd resources/client && npm i && bower i && npm run build
npm WARN package.json rudolph@0.0.0 No repository field.
> rudolph@0.0.0 build /Users/andy/code/kontor/gropius/resources/client
> nod_modiles/.bin/webpack --config config/production.webpack.config.js --progress --colors --profile
Verifying that +andyparsons is my openname (Bitcoin username). https://onename.io/andyparsons
Captured Task Output:
---------------------
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.assets.update_assets
python manage.py lms --settings=devstack preprocess_assets
Build failed running pavelib.servers.devstack: Subprocess return code: 1
(edx)[edx-platform] paver devstack lms 16:28:53 ☁ api ☂ ✖ ⚡