Skip to content

Instantly share code, notes, and snippets.

@dkozma
dkozma / filter.svg
Created July 31, 2015 17:23
SVG Filter Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=132)}([function(e,t,n){!function(e,n){n(t)}(0,function(e){"use strict";function t(){}function n(e,t){this.x=e||0,this.y=t||0}function r(e,t,o,a,s,u,c,l,p,h){Object.defineProperty(this,"id",{value:i()}),this.uuid=Oa.generateUUID(),this.name="",this.sourceFile="",this.image=void 0!==e?e:r.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==t?t:r.DEFAULT_MAPPING,this.wrapS=void 0!==o?o:Po,this.wrapT=void 0!==a?a:Po,this.magFilter=void 0!==s?s:jo,this.minFilter=void 0!==u?u:Do,this.anisotropy=void 0!==p?p:1,this.format=void 0!==c?c:Qo,this.
@dkozma
dkozma / inspect.clj
Last active August 13, 2017 22:38
Clojure->Chrome Inspector
(ns inspect
(:require [cheshire.core :refer [generate-string]]
[clojure.java.io :as io])
(:import (java.net Socket)
(def host "localhost")
(def port 9000)
(defn cinspect [data]
(with-open [sock (Socket. host port)
@dkozma
dkozma / sample.cljs
Created January 9, 2018 20:59
Reagent-Apollo Sample Syntax
(:require [reagent-apollo.core :as a])
(a/component "{
feed(type: TOP, limit: 10) {
repository {
name
owner { login }
}
postedBy { login }
}"
var ReactKonva =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
var wrapperFactory = function (wrapperContext) {
var resetCancelToken = function () {
wrapperContext.cancelToken = false;
};
var wrapper = function (cbThis, cb) {
var args = [];
for (var _i = 2; _i < arguments.length; _i++) {
args[_i - 2] = arguments[_i];
}
wrapperContext.callbackThis = cbThis;