Skip to content

Instantly share code, notes, and snippets.

@romansp
romansp / Mention.ts
Created January 30, 2024 00:27
Vue TipTap suggestion rendering
import {
Node,
VueNodeViewRenderer,
mergeAttributes,
} from "@tiptap/vue-3";
import { createSuggestionRenderer } from "./suggestionRenderer";
export default Node.creat({
// your mention node declarations here...
@romansp
romansp / actions.ts
Created January 8, 2019 12:50
Type-safe vuex payloads
import { Payload } from "vuex";
import { PayloadMap, ActionTree } from "./vuex-typed";
import { State } from "./state";
import { Mutation } from "./mutations";
// define action types by adding new values to this enum
export enum ActionTypes {
Action = "Action",
}
var that=this;function __skpm_run(t,n){that.context=n;var e=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="./src/my-command.js")}({"./src/my-command.js":
/*!***************************!*\
!*** ./src/my-command.js ***!
\***************************/
/*! exports provided: default */function(t,n,e){"use strict";e.r(n),n.default=function(t){t.document.showMessage("It's alive 🙌")}}});"default"===t&&"function"==typeof e?e(n):e[t](n)}that.onRun=__skpm_run.bind(this,"default");
var that=this;function __skpm_run(t,n){that.context=n;var e=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="./src/my-command.js")}({"./src/my-command.js":
/*!***************************!*\
!*** ./src/my-command.js ***!
\***************************/
/*! exports provided: default */function(t,n,e){"use strict";e.r(n),n.default=function(t){t.document.showMessage("It's alive 🙌")}}});"default"===t&&"function"==typeof e?e(n):e[t](n)}that.onRun=__skpm_run.bind(this,"default");
var that=this;function __skpm_run(key,context){that.context=context;var exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/my-command.js")}({"./src/my-command.js":
/*!***************************!*\
!*** ./src/my-command.js ***!
\***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = (function (context) {\n context.document.showMessage("

Keybase proof

I hereby claim:

  • I am romansp on github.
  • I am rspaulau (https://keybase.io/rspaulau) on keybase.
  • I have a public key whose fingerprint is 0DDE 3474 3ECE 54FA F069 AC91 098F DE15 2225 132F

To claim this, I am signing this object:

{
"_class":"text",
"do_objectID":"49045D77-E749-429F-9DD7-04C7125D2E68",
"exportOptions":{
"_class":"exportOptions",
"exportFormats":[
],
"includedLayerIds":[
@romansp
romansp / stackcode-dump.html
Created October 30, 2016 11:48
HTML page of twitter #stackcode search
This file has been truncated, but you can view the full file.
<html lang="en" data-scribe-reduced-action-queue="true"><head>
<meta charset="utf-8">