Skip to content

Instantly share code, notes, and snippets.

const id = Helper.generateUnified(179); // generate tracking ID for customer 179
console.log( id )
> ZQA-179-946629
window._research = window._research || {};
window._research._fn = {
i18n: function () {
return function (o, render) {
o = o.split('}}')[0] + '.' + window._locale + '}}';
return render(o).trim();
}
},
fullDate: function () {
@kulturpessimist
kulturpessimist / encrypt_openssl.md
Created July 17, 2018 08:47 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

module.exports = {
config: {
// update channel?
updateChannel: 'stable',
// default font size in pixels for all tabs
fontSize: 15,
// font family with optional fallbacks
fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
uiFontFamily: "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto",

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am kulturpessimist on github.
* I am kulturpessimist (https://keybase.io/kulturpessimist) on keybase.
* I have a public key whose fingerprint is 5E8E 81AC D750 2919 1127 226D 4E05 9FC5 47DD DDA0
To claim this, I am signing this object:
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@kulturpessimist
kulturpessimist / designer.html
Last active August 29, 2015 14:03
designer
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@kulturpessimist
kulturpessimist / Gruntfile.js
Last active August 29, 2015 14:00
Example grunt couchapp workflow
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
grunt.loadTasks('grunt');
// Tasks
grunt.registerTask('default', ['build']);
@kulturpessimist
kulturpessimist / gist:5541504
Created May 8, 2013 16:05
String padding as prototype based on my.trading.io code.
String.prototype.pad = function(lenght, padding, left) {
var p = (new Array(lenght - this.toString().length + 1)).join(padding);
return ( left?p+this:this+p )
}