Skip to content

Instantly share code, notes, and snippets.

View juancarlosqr's full-sized avatar
🤖
Keep learning, have fun, be kind!

Juan Carlos Quintero juancarlosqr

🤖
Keep learning, have fun, be kind!
View GitHub Profile
@juancarlosqr
juancarlosqr / gorgias-chat-widget.liquid
Last active June 28, 2023 12:36
Shopify Liquid template to install the Gorgias Chat Widget in JSON templates
<!-- Gorgias Chat Widget Start -->
<script
defer
id="gorgias-chat-widget-install-v3"
src="https://config.gorgias.chat/bundle-loader/{{ section.settings.gorgias_chat_app_key }}"
></script>
<!-- Gorgias Chat Widget End -->
{% schema %}
{
@juancarlosqr
juancarlosqr / dummy.spec.js
Created March 11, 2019 08:03
Dummy example to illustrates how shallow, mount, withStyles and unwrap work
import React from 'react'
import { withStyles } from '@material-ui/styles'
import { unwrap } from '@material-ui/core/test-utils'
import { mount, shallow } from 'enzyme'
import renderer from 'react-test-renderer'
const log = data => {
// set false to avoid logging
false && console.log(data)
}
@juancarlosqr
juancarlosqr / index.html
Created April 11, 2016 15:41
HTML5 template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
</head>
<body>
<!-- content goes here -->
</body>