Skip to content

Instantly share code, notes, and snippets.

@Livshitz
Livshitz / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<polymer-element name="my-element">
<template>
<style>
@Livshitz
Livshitz / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
@Livshitz
Livshitz / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {

Keybase proof

I hereby claim:

  • I am livshitz on github.
  • I am livshitz (https://keybase.io/livshitz) on keybase.
  • I have a public key ASCFgNAtxi2oVPvb5cfgZHRMtaKfcpykFjjIqRmcGWlwxQo

To claim this, I am signing this object:

console.log('> LotaryContract: Init: v 0.32')
const _ = require('lodash');
// Define new contract
var contract = {};
// Reset/Init the contract
contract.reset = function() {
contract.balance = 0;
@Livshitz
Livshitz / index.html
Created July 24, 2018 06:05
Spilled Paint ( WebGL Shader )
<script id="2d-fragment-shader" type="x-shader/x-fragment">// <![CDATA[
#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.14159265359;
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
@Livshitz
Livshitz / tsconfig.json
Last active December 25, 2019 17:58
TS tsconfig
{
"compilerOptions": {
"target": "es3",
"module": "commonjs", // 'commonjs', 'amd', 'umd', 'system'.
"moduleResolution": "node", //"classic", "nodejs"
// "noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
//"isolatedModules": false
"experimentalDecorators": true,
@Livshitz
Livshitz / launch.json
Last active January 1, 2020 17:55
vscode debug definition
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Typescript",
// "program": "${workspaceFolder}/src/modules/LinkedNode.ts",
// "program": "${workspaceFolder}/src/tests/dxhive.ts",
// "program": "${workspaceFolder}/src/tools/scrape.ts",
console.log('lazy module loaded')
const mod = {};
mod.test = ()=>{
console.log('test from lazy loaded module!!')
}
module.exports = mod;
@Livshitz
Livshitz / rabbitMQ_pusher.js
Last active March 29, 2021 15:39
Quick & easy way to push messages to RMQ through HTTP API.
// rabbitMQ_pusher:
// Quick & easy way to push messages to RMQ through HTTP API.
// Elya Livshitz 2020
// PLEASE NOTE: the destination queue is defined in each message, not here in the url...
/*
Couple notes:
1. Grab the messages and save to a local json file from CloudAMQP by opening devtools>network and ‘get’ the messages with nack [img 1](https://user-images.githubusercontent.com/246724/112861814-d1eb2780-90bd-11eb-96e9-b9bc2cb5bc2d.png)
2. Grab `amqpToken` from Authorization [img 2](https://user-images.githubusercontent.com/246724/112861830-d6174500-90bd-11eb-88bf-8443408d701f.png)