Skip to content

Instantly share code, notes, and snippets.

@yellow1912
yellow1912 / log
Created July 17, 2019 14:22
ssl error
odfe-node1 | javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
odfe-node1 | at sun.security.ssl.Alert.createSSLException(Alert.java:128) ~[?:?]
odfe-node1 | at sun.security.ssl.Alert.createSSLException(Alert.java:117) ~[?:?]
odfe-node1 | at sun.security.ssl.TransportContext.fatal(TransportContext.java:308) ~[?:?]
odfe-node1 | at sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:279) ~[?:?]
odfe-node1 | at sun.security.ssl.TransportContext.dispatch(TransportContext.java:181) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLTransport.decode(SSLTransport.java:164) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLEngineImpl.decode(SSLEngineImpl.java:672) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:627) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:443) ~[?:?]
@yellow1912
yellow1912 / vuejs
Created July 19, 2019 11:30
vuejs isotppe
<template>
<isotope ref="cpt" class="row q-col-gutter-sm" :options='options' :list="list">
<div v-for="(item,index) in list" class="q-pt-none" v-bind:class="{ 'col-7': (index == 0 || index == 1), 'col-5': (index == 2 || index == 3) }" :key="index">
<span hidden class="id">{{ item.id }}</span>
<q-card rounded class="q-mb-4">
<q-img :src="item.image" :ratio="item.ratio" />
</q-card>
</div>
</isotope>
</template>
abraham/twitteroauth dev-master 9350ad1 The most popular PHP library for use with the Twitter OAuth REST API.
aws/aws-sdk-php 3.112.0 AWS SDK for PHP - Use Amazon Web Services in your PHP project
beberlei/doctrineextensions v1.2.3 A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL and Oracle.
behat/gherkin v4.6.0 Gherkin DSL parser for PHP 5.3
behat/transliterator v1.2.0 String transliterator
cloudflare/sdk dev-master 9b97389 PHP binding for v4 of the Cloudflare Client API.
clue/stream-filter v1.4.1 A simple and modern approach to stream filtering in PHP
codeception/codeception 3.1.1 BDD-style testing framework
codeception/phpunit-wrapper 8.0.4 PHPUnit classes used by Codeception
code
@yellow1912
yellow1912 / sample.js
Last active September 23, 2019 13:41
sample js code
(function (nu) {
nu.ready(function () {
var elements = nu.querySelectorAll('.nl-widget-sleek-form-contact');
for (var i=0; i < elements.length; i++) {
var form = nu.querySelector('form', elements[i]);
nu.addEventListener(form, 'submit', function (e) { console.log('a');
nu.querySelector('button', e.target).setAttribute('disabled', 'disabled');
});
@yellow1912
yellow1912 / sample.js
Created September 23, 2019 13:41
sample webpack result
(function(){'use strict';
(function(f) {
function c(a) {
if (e[a]) {
return e[a].exports;
}
var b = e[a] = {i:a, l:!1, exports:{}};
f[a].call(b.exports, b, b.exports, c);
b.l = !0;
return b.exports;
@yellow1912
yellow1912 / sample.js
Created September 23, 2019 13:44
Sample closure output
(function(b) {
b.ready(function() {
for (var d = b.querySelectorAll(".nl-widget-sleek-form-contact"), c = 0; c < d.length; c++) {
var a = b.querySelector("form", d[c]);
b.addEventListener(a, "submit", function(a) {
console.log("a");
b.querySelector("button", a.target).setAttribute("disabled", "disabled");
});
var e = ni.provider.get("service").get("event");
a = ni.provider.get("const").get("plugin.form.events").SUBMIT_DONE.replace("%s", a.getAttribute("data-form-id"));
@yellow1912
yellow1912 / SES error
Created November 4, 2019 12:12
message.json
{
["Source"]=>
string(19) "[email protected]"
["Destination"]=>
array(1) {
["ToAddresses"]=>
array(1) {
[0]=>
string(28) "[email protected]"
}
HTML:
<nl-test inline-template>
<div>
<div v-on:click="increase"> increase here please </div><br><br>
<div v-on:click="decrease"> decrease here please </div>
<ul>
<li v-for="(value, key) in getItems()" :key="key">
printing
<component :is="getItem()" :key="key"></component>
@yellow1912
yellow1912 / issue.js
Created August 5, 2020 11:19
Generated minified code by terser (debug)
function n(t){"use strict";var e,i=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=t,!t||!t.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return n.prototype.onClick.apply(i,arguments)},this.onMouse=function(){return n.prototype.onMouse.apply(i,arguments)},this.onTouchStart=function(){return n.prototype.onTouchStart.apply(i,arguments)},this.onTouchMove=function(){return n.prototype.onTouchMove.apply(i,arguments)},this.onTouchEnd=function(){return n.prototype.onTouchEnd.apply(i,arguments)},this.onTouchCancel=function(){return n.prototype.onTouchCancel.apply(i,arguments)},n.notNeeded(t)||(this.deviceIsAndroid&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!
@yellow1912
yellow1912 / CSSUtilities.js
Created September 25, 2020 16:47
Updated Selector.js and CSSUtilities to work in latest Chrome (v85)
// IMPORTANT: you need to import selector here
// import {Selector} from "@/Selector";
/*******************************************************************************
CSS0.99.1B :: CSSUtilities
-------------------------------------------------------------------------------
Copyright (c) 2010 James Edwards (brothercake) <[email protected]>
BSD License See license.txt for licensing information
Info/Docs http://www.brothercake.com/site/resources/scripts/cssutilities/
-------------------------------------------------------------------------------