Skip to content

Instantly share code, notes, and snippets.

{
"code": "1",
"version": "1.1.3",
"newFeatures": "Added history",
"apk": "https://test.html"
}
@paxti
paxti / User settings
Created June 13, 2018 00:39
Enable eslint for Vue files in Visual studio code
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
]
@paxti
paxti / layout.xml
Created May 2, 2018 19:00
FabButton menu
<com.getbase.floatingactionbutton.FloatingActionsMenu
android:id="@+id/right_labels"
android:layout_gravity="bottom|end"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
fab:fab_labelsPosition="left"
fab:fab_labelStyle="@color/cardview_dark_background"
fab:fab_addButtonSize="normal"
fab:layout_anchorGravity="bottom|end">
@paxti
paxti / index.js
Created March 23, 2018 15:44
Find all prospect in the DB by showName and save to separate files
const MongoClient = require('mongodb').MongoClient
const assert = require('assert')
const Json2csvParser = require('json2csv').Parser
const Promise = require('bluebird')
const fs = Promise.promisifyAll(require('fs'))
const csvdata = require('csvdata')
let database
let collection
const fileWithShows = './data_5.csv'
@paxti
paxti / index.js
Created February 4, 2018 04:14
Modified to work in Windows env index.js for Electron in https://github.com/darkyen/pkce-demos
const {BrowserWindow, app, protocol, ipcMain} = require('electron');
const env = require('../env');
const path = require('path')
var mainWindow = null;
function _generateResponse () {
return `
<html>
<head></head>
<body>
@paxti
paxti / signature.html
Created December 20, 2017 15:10
HTML signature for email
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; margin-bottom: 0pt;">
<p dir="ltr"><strong>Brian Heying | Marketing Solutions Specialist</strong></p>
<p><em>Office</em> (314) 373-8160</p>
<p dir="ltr"><strong><span style="color:#FF0000">24-HOUR HELPLINE | (314) 699-HELP <em>(4357)</em></span></strong></p>
<p dir="ltr"><a href="https://gatewaypowered.com/" target="_blank"><img src="https://lh6.googleusercontent.com/_6yCx4dvrq2L21OrOjmvVHqtv0YboDC6aP0VwlPyUcmVS7VtFXasr6idtjl5dtn43KcXDA37CGQFMtt1bviFb5I_97R3bH2F3JCGQ60nmg7_JsX7Y1FMFjSOInLmsllaxW8I-CdG" style="height:59px; width:341px" /></a></p>
<p dir="ltr" style="margin-left: 30px">GATEWAY</p>
@paxti
paxti / index.html
Created December 7, 2017 22:29
Block layout for thesite
<div class="block-main-wrapper">
<div class="block-column-600">
<div class="block-height-800 block-cell block-big">
<img src="http://foresteurope.org/wp-content/uploads/2016/09/103055DSC0172ssw2-1024x685.jpg" alt="----- Description here ----">
<div class="block-image-cover"></div>
<div class="block-description">
<h1>Google officially increases length of snippets in search results</h1>
</div>
</div>
</div>
@paxti
paxti / gallery-share.js
Created December 4, 2017 12:11
Initial script for gallery share
@paxti
paxti / index.html
Created October 23, 2017 11:03
Simple form that always stack each field in a new line
<div class="sh-column-wrapper">
<script>
function onSubmitccaSidebar5979e43e6c471d58b1ba1d3dfd006(token) {
document.getElementById("contact-form-cca5979e43e6c471d58b1ba1d3dfd006").getElementsByTagName("form")[0].submit();
}
</script>
<div id="contact-form-cca5979e43e6c471d58b1ba1d3dfd006" class="form-wrapper contact-form">
<form data-fw-form-id="fw_form" method="post" action="<PARDOT_LINK_HERE>" class="fw_form_fw_form" data-fw-ext-forms-type="contact-forms">
<input type="hidden" class="gclid_default" name="gclid" value="" placeholder="Email">
<div id="recaptcha-cca5979e43e6c471d58b1ba1d3dfd006" class="g-recaptcha" data-sitekey="6Le02yEUAAAAAPAW9zzNCoADSCEWbq4Ktr69pKKJ" data-callback="onSubmitccaSidebar5979e43e6c471d58b1ba1d3dfd006" data-size="invisible"></div>
@paxti
paxti / index.html
Last active October 23, 2017 10:56
Snippet for one line form
<div class="sh-column-wrapper">
<script>
function onSubmitccaNews5979e43e6c471d58b1ba1d3dfd006(token) {
document.getElementById("contact-form-cca5979e43e6c471d58b1ba1d3dfd006").getElementsByTagName("form")[0].submit();
}
</script>
<div id="contact-form-cca5979e43e6c471d58b1ba1d3dfd006" class="form-wrapper contact-form">
<form data-fw-form-id="fw_form" method="post" action="<PARDOT_LINK_HERE>" class="fw_form_fw_form" data-fw-ext-forms-type="contact-forms">
<input type="hidden" class="gclid_default" name="gclid" value="" placeholder="Email">
<div id="recaptcha-cca5979e43e6c471d58b1ba1d3dfd006" class="g-recaptcha" data-sitekey="6Le02yEUAAAAAPAW9zzNCoADSCEWbq4Ktr69pKKJ" data-callback="onSubmitccaNews5979e43e6c471d58b1ba1d3dfd006" data-size="invisible"></div>