Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
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
| ;;; hipchat.el -- Random functions for Hipchat | |
| ;; Copyright (C) 2013 Tom Davis <tom@recursivedream.com> | |
| ;; Author: Tom Davis <tom@recursivedream.com> | |
| ;; Version: 0.1 | |
| ;; Created: 2013-07-17 | |
| ;; Keywords: Emacs Hipchat Bitlbee | |
| ;; This file is NOT part of GNU Emacs. |
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
| ECONNRESET |
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
| ;;; my-java.el --- Set up eclim and work around some of its current issues. | |
| ;;; Commentary: | |
| ;;; | |
| ;;; | |
| ;;; Code: | |
| (eval-when-compile (require 'cl)) | |
| (require 'eclim) | |
| (require 'eclim-problems) | |
| (require 'eclimd) | |
| (require 'auto-complete-config) |
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
| Debugger entered--Lisp error: (error "Error 2: parameter 'maildir' not found") | |
| signal(error ("Error 2: parameter 'maildir' not found")) | |
| error("Error %d: %s" 2 "parameter 'maildir' not found") | |
| mu4e-error-handler(2 "parameter 'maildir' not found") | |
| byte-code("\306 \205\307\310\311 #\210\312 \313\"\203 | |
| mu4e~proc-filter(#<process *mu4e-proc*> "\37634\377(:error 2 :message \"parameter 'maildir' not found\")\n") | |
| read-event() | |
| #[0 "\307\312 \240\210\307\242\211\242\313=\262\204 |
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 six | |
| from six.moves import configparser | |
| NO_FALLBACK = object() | |
| def configparser_get(conf, section, name=None, fallback=NO_FALLBACK): | |
| if name is None: | |
| try: | |
| if six.PY3: |
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
| FilterRegistration.Dynamic reg = getServletConfig().getServletContext().addFilter("CORS Filter", "org.ebaysf.web.cors.CORSFilter"); | |
| reg.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST), false, "/*"); | |
| reg.setInitParameters(new HashMap<String, String>() {{ | |
| put("cors.allowed.origins", "http://localhost:3449"); | |
| put("cors.allowed.headers", "Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers,Cookie"); | |
| put("cors.exposed.headers", "Set-Cookie"); | |
| }}); |
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
| /* | |
| * When using Graphql in NestJS, custom decorator invocations that include pipe | |
| * constructors do not apply ultimately apply said pipes. Passing a pipe _instance_ | |
| * works fine, hoever. The following test will fail because we expect that the output | |
| * would be "replacement" per `TestPipe.transform()` while instead it is "original", | |
| * as if from a literal `@CustomParam()`. | |
| */ | |
| import { | |
| createParamDecorator, |
I hereby claim:
- I am tdavis on github.
- I am tcdxr (https://keybase.io/tcdxr) on keybase.
- I have a public key ASD01JWm2Uph5te4d1T2Bp1lK4qVKXy6xlUf61Ll7oIheQo
To claim this, I am signing this object:
OlderNewer