Skip to content

Instantly share code, notes, and snippets.

View janzenz's full-sized avatar
:octocat:
Working

Janzen Zarzoso janzenz

:octocat:
Working
View GitHub Profile
@janzenz
janzenz / MyPureComponent.js
Created March 13, 2017 07:35
A stateless Pure Component
import React from 'react';
const MyPureComponent = () => (
<div>This is My Component!</div>
);
export default MyPureComponent;
@janzenz
janzenz / .eslintrc.json
Last active February 20, 2018 05:29
ESLint Config for Meteor + React with Comments
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:meteor/recommended"
],
@janzenz
janzenz / gist:85cb6bbcdff1cedcb860352df6373cda
Created June 29, 2017 16:34
Mongo Query for Patients with invalid MMJ Card
db.getCollection('Patients').find({
mmjCardNumber: { $not: /^[0-9]{7}[a-zA-Z]{4}[0-9]{9}$/ }
})
@janzenz
janzenz / zocdoc.js
Created June 11, 2018 06:56
Zocdoc Widget Script
<script>
(function (d) {
var script = d.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = '//offsiteschedule.zocdoc.com/plugin/embed';
var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})(document);
</script>
@janzenz
janzenz / Form
Created February 18, 2019 10:36
<form action="/en/referring-doctors/#wpcf7-f156-p298-o1" method="post" class="wpcf7-form" enctype="multipart/form-data" novalidate="novalidate">
<div style="display: none;">
<input type="hidden" name="_wpcf7" value="156">
<input type="hidden" name="_wpcf7_version" value="5.0.3">
<input type="hidden" name="_wpcf7_locale" value="en_US">
<input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f156-p298-o1">
<input type="hidden" name="_wpcf7_container_post" value="298">
</div>
<div class="row">
<div class="form-group col-md-6">
<style>
#gtm-popup {
width: 70vw;
height: 70vh;
position: fixed;
background-color: gray;
color: white;
/* Align content to the middle. */
display: none; /* hide by default */