Skip to content

Instantly share code, notes, and snippets.

/*! For license information please see form-builder.min.js.LICENSE.txt */
!function(e){"use strict";!function(){var t={424:function(e,t,r){r.r(t);var o=r(933),i=r.n(o),n=r(476),l=r.n(n),a=r(678),s=r.n(a),d=new URL(r(971),r.b),c=new URL(r(525),r.b),f=new URL(r(658),r.b),u=l()(i()),p=s()(d),m=s()(c),b=s()(f);u.push([e.id,'@font-face{font-family:"formbuilder-icons";src:url('+p+') format("woff")}[class^=formbuilder-icon-]:before,[class*=" formbuilder-icon-"]:before{font-family:"formbuilder-icons";font-style:normal;font-weight:normal;speak:never;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.formbuilder-icon-autocomplete:before{content:""}.formbuilder-icon-date:before{content:""}.formbuilder-icon-checkbox:before{content:""}.formbuilder-icon-checkbox-group:before{content:""}.formbuilder-icon-radio-group:before{content:""}.formbuilder-icon-rich-text:before{content:""}.formbuilder-icon-select:be
CREATE OR REPLACE FUNCTION generate_sequential_uuid(p_interval_length int DEFAULT 60)
RETURNS uuid
LANGUAGE plpgsql
AS $$
DECLARE
v_i int;
v_time bigint;
v_bytes int[16] = '{}';
v_hex text[16] = '{}';
BEGIN
@lucasnetau
lucasnetau / gist:bcacb528d664f0ad1339086c1a585021
Created September 22, 2016 00:05
Patch for SHA256 support for OmniPay MIGS
--- AbstractRequest.php.2 2016-09-21 19:45:07.846345749 -0400
+++ AbstractRequest.php 2016-09-21 19:46:47.049424061 -0400
@@ -67,6 +67,9 @@
$hash = null;
foreach ($data as $k => $v) {
+ // Skip vpc_ keys that are not included in the hash calculation
+ if(in_array($k, array('vpc_SecureHash', 'vpc_SecureHashType'))) continue;
+
if ((strlen($v) > 0) && ((substr($k, 0, 4)=="vpc_") || (substr($k, 0, 5) =="user_"))) {