I hereby claim:
- I am attila on github.
- I am attila (https://keybase.io/attila) on keybase.
- I have a public key whose fingerprint is 250D 6A91 F602 62A9 66C7 8ADF E4EC 4774 F1CC 878D
To claim this, I am signing this object:
| $.fn.preBind = function(type, data, fn) { | |
| this.each(function() { | |
| var $this = $(this); | |
| $this.bind(type, data, fn); | |
| var currentBindings = $._data($this[0], 'events'); | |
| if ($.isArray(currentBindings[type])) { | |
| currentBindings[type].unshift(currentBindings[type].pop()); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| [ui] | |
| username=John Doe <[email protected]> | |
| [hooks] | |
| pretxncommit = ~/bin/requireCaseId.sh |
| #!/usr/bin/expect | |
| set timeout 60 | |
| spawn ufw enable | |
| while {1} { | |
| expect { | |
| eof {break} | |
| "Proceed with operation" {send "y\r"} | |
| } | |
| } |
| (function() { | |
| 'use strict'; | |
| var CSSCriticalPath = function(w, d, opts) { | |
| var opt = opts || { | |
| allowHosts: [ | |
| w.location.hostname | |
| ] | |
| }; | |
| var css = {}; |
| $color: red; |
| diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc | |
| index 0428bd3..1814aa8 100644 | |
| --- a/includes/bootstrap.inc | |
| +++ b/includes/bootstrap.inc | |
| @@ -2360,6 +2360,10 @@ function _drupal_bootstrap_configuration() { | |
| timer_start('page'); | |
| // Initialize the configuration, including variables from settings.php. | |
| drupal_settings_initialize(); | |
| + | |
| + // Sanitize unsafe keys from the request. |
| const operation = () => new Promise((resolve, reject) => { | |
| if (Math.random() > 0.8) { | |
| resolve('all good'); | |
| } else { | |
| reject(new Error('failure')); | |
| } | |
| }); | |
| const pause = duration => new Promise(resolve => setTimeout(resolve, duration)); |
| /** | |
| * Run asynchronous computations sequentially | |
| * | |
| * @param {Function} f computation | |
| * @returns {function(*): *} | |
| */ | |
| const sequence = f => entries => | |
| entries.reduce( | |
| (promise, entry) => | |
| promise.then( |
| import * as D from "io-ts/Decoder"; | |
| import { extract } from "fp-ts/lib/Identity"; | |
| import { fold } from "fp-ts/lib/Either"; | |
| import { pipe } from "fp-ts/lib/function"; | |
| // Utility to assert/coerce type. | |
| export const decodeType = <P>(type: D.Decoder<unknown, P>, value: unknown): P => | |
| pipe( | |
| type.decode(value), | |
| fold(() => { |