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
(defelem file-upload | |
"Creates a file upload input." | |
[name] | |
(input-field "file" name nil)) |
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
[:post "/your-pdf"] | |
(form/file-upload "file-path") [:br] | |
(form/submit-button "Upload a PDF") |
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
Gather input: | |
__________________ | |
(form/form-to [:post "/your-pdf"] | |
(form/file-upload "file") [:br] | |
(form/submit-button "Upload a PDF")) | |
Post to handler which sends the uploaded file to be read and displayed: | |
______________________ |
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
(defn encode-url-param [v] | |
(-> v | |
(str/replace " " "_0") | |
(str/replace "-" "_1") | |
(str/replace "&" "_2") | |
(str/replace "'" "_3") | |
(str/replace "," "_4") | |
(clojure.string/escape | |
{\[ "_5" | |
\] "_6" |
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
Naturally, we should find ourselves at the concept of seclusion, which is so implicitly associated with privacy. When asked about how to achieve privacy, most people will respond by saying that they would go to a private place and be alone. Posner also comes to a similar conclusion when saying, a person would have to be a hermit to be able to function in our society without voluntarily disclosing a vast amount of personal information to a vast array of public and private demanders.” (Posner 249) The key to this idea is the concept of achieving solitude. First, we should realize that only a certain level of solitude could be achieved on this earth. After all, there is only so much space on the earth, and a great number of people. Maybe the idea of privacy through solitude will one day be achieved when anonymous intergalactic travel becomes possible. | |
It is at this point that we arrive at my first concession to the idea of true privacy existing. If privacy can be achieved through seclusion then it can one day |
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
2015-05-29T08:17:46.781819+00:00 heroku[web.1]: State changed from crashed to starting | |
2015-05-29T08:17:57.761311+00:00 heroku[web.1]: Starting process with command `lein run -m msg-ops.core` | |
2015-05-29T08:18:06.872313+00:00 app[web.1]: Retrieving org/clojure/tools.nrepl/0.2.6/tools.nrepl-0.2.6.pom from central | |
2015-05-29T08:18:07.206123+00:00 app[web.1]: Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.pom from clojars | |
2015-05-29T08:18:07.644313+00:00 app[web.1]: Retrieving org/clojure/tools.nrepl/0.2.6/tools.nrepl-0.2.6.jar from central | |
2015-05-29T08:18:07.742368+00:00 app[web.1]: Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar from clojars | |
2015-05-29T08:18:36.604170+00:00 app[web.1]: Exception in thread "main" java.lang.ExceptionInInitializerError | |
2015-05-29T08:18:36.604245+00:00 app[web.1]: at clojure.main.<clinit>(main.java:20) | |
2015-05-29T08:18:36.604584+00:00 app[web.1]: Caused by: java.lang.NoClassDefFoundError: bidi/bidi/RouteProvider, compiling: |
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
Fatal error: Uncaught exception 'Stripe\Error\InvalidRequest' with message 'No such token: tok_16jBJZAVFXMLgED1EUIQCREA' in /Users/JonOgolo/Dropbox (Personal)/business/nextchapter/Big Buns/Big Buns New Site 9.1.15/vendor/stripe/stripe-php/lib/ApiRequestor.php:98 from API request 'req_6x5UACwZOJQw7I' Stack trace: #0 /Users/JonOgolo/Dropbox (Personal)/business/nextchapter/Big Buns/Big Buns New Site 9.1.15/vendor/stripe/stripe-php/lib/ApiRequestor.php(210): Stripe\ApiRequestor->handleApiError('{\n "error": {\n...', 400, Array, Array) #1 /Users/JonOgolo/Dropbox (Personal)/business/nextchapter/Big Buns/Big Buns New Site 9.1.15/vendor/stripe/stripe-php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse('{\n "error": {\n...', 400, Array) #2 /Users/JonOgolo/Dropbox (Personal)/business/nextchapter/Big Buns/Big Buns New Site 9.1.15/vendor/stripe/stripe-php/lib/ApiResource.php(105): Stripe\ApiRequestor->request('post', '/v1/charges', Array, Array) #3 /Users/JonOgolo/Dropbox (Personal)/business/nextchapter |
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
(defn confirm-edit | |
"All required fields present. confirm-Edit field/values." | |
[input] | |
(cond | |
(:cancel? input) | |
{:new-state :initial | |
:response (str "The updates have been canceled. | |
Please send us more information to save.")} |
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
(defn confirm-edit | |
"All required fields present. confirm-Edit field/values." | |
[input] | |
(cond | |
(true? (:cancel? input)) ;; Did the user cancel? | |
{:new-state :initial | |
:response (str "The updates have been canceled. | |
Please send us more information to save.")} |
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
input data structure | |
{:incoming-message "Met with Ji. She's going to buy 10 licenses for $1000. Closing tomorrow.", :current-state :select-opp, :opportunities | |
["Amara Veri of Tata Enterprises" "Amara Veri of Tata Enterprises" "default opportunity name" "Hansa Purity" "has requested a quote for Overlook at hamilton Mill" "has requested a quote for Overlook at hamilton Mill" "Indian | |
Airlines" "Indian Airlines" "made a deal with Amara Patel of Indian Airlines" "made a deal with Amara Patel of Indian Airlines" "made a deal with Amara Patel of Indian Airlines" "made a deal with Amara Patel of Indian Airlines" | |
"made a deal with Amara Patel of Indian Airlines" "made a deal with Amara Patel of Indian Airlines" "Marketing Upgrade" "met with TEC" "met with TEC" "Met with TEC ." "Met with TEC ." "Met with TEC ." "Met with TEC ." "Open |