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:
I hereby claim:
To claim this, I am signing this object:
/* | |
* 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, |
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"); | |
}}); |
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.
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: |
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 |
;;; 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) |
ECONNRESET |
;;; 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. |
➜ ~ sudo MAKEFLAGS="-skipinteg" pacman -S qtwebkit | |
resolving dependencies... | |
looking for inter-conflicts... | |
Packages (2): qt4-4.8.4-18 qtwebkit-2.3.1-2 | |
Total Download Size: 20.38 MiB | |
Total Installed Size: 114.88 MiB | |
:: Proceed with installation? [Y/n] |