Skip to content

Instantly share code, notes, and snippets.

View ipropper's full-sized avatar

Ian Propper ipropper

View GitHub Profile

Rule Shop Middle Ring (applies to one party member, qt 1 per rule)

Potential Rules (and their compliment) Value (CB) Reverse value (CB)
No filler words 500 1000
Must speak in complete sentences 200 500
Must speak in 3rd person 300 0
Must speak in 2nd person 300 0
hide teeth 200 300
Must exclusively speak in 1st 300 300
{% comment %}
Props:
- isSelected: Boolean indicating if the radio button is selected
{% endcomment %}
<div
class='w-6 h-6 rounded-full border-2 flex items-center justify-center'
:class="isSelected ? 'border-[#B73253]' : 'border-gray-400'"
>
<div
{% assign days = days | default: 30 %}
{% assign divider_color = divider_color | default: '#000000' %}
{% assign units = 'days,hours,minutes,seconds' | split: ',' %}
<div data-id='countdown-timer' class='flex justify-between' x-data='countdown({{ days }})'>
{% for time in units %}
<div class='text-center flex flex-col items-center gap-6'>
<div class='text-h2' x-text='{{ time }}'></div>
<div class='text-body-lg capitalize'>{{ time }}</div>
</div>
@ipropper
ipropper / amorphus.html
Created March 24, 2025 23:41
combining solid.js with liquid
// liquid
<thumbnail-gallery
images='{{ first_product.images | json }}'
default-image-index='1'
>
<div
data-main-image-container
class='bg-gray-100 rounded-lg overflow-hidden'
>
{% if still_collection.products.size > 0 and still_collection.products.first.images.size > 0 %}
@ipropper
ipropper / display.liquid
Last active May 16, 2024 17:43
Use React In Shopify
{% comment %}
this file shows how to use the react renderer in liquid
{% endcomment %}
{{ 'bundle.js' | asset_url | script_tag }}
<div id="app-root"></div>
<div id="module-1-render"></div>
<div id="module-2-render"></div>
<script>
@ipropper
ipropper / list.md
Last active January 24, 2022 15:50
temp
index 82bb00f..18f6ed0 100644
--- a/config/settings_data.json
+++ b/config/settings_data.json
@@ -295,7 +295,7 @@
               "enable_image_4": false,
               "image_4": "",
               "heading_4": "EARTH FRIENDLY",
-              "content_4": "<p>Dropps packaging eliminates plastic, and is recyclable and compostable. That means less mess in our landfills, and less plastic in our oceans and waterways.<\/p>",
+              "content_4": "<p>Dropps packaging eliminates plastic, and is recyclable and biodegradable. That means less mess in our landfills, and less plastic in our oceans and waterways.<\/p>",
<div>
<div>
<img src="//cdn.shopify.com/s/files/1/0268/4219/products/StainOdor-CleanAndCrisp_b2afa38f-0211-48a9-a5cd-f1f5d263e26b.jpg?v=1616043170">
<div>Stain &amp; Odor Laundry Detergent Pods, Clean &amp; Crisp</div>
<p>"Such easy, mess-free pods that truly work on tough stains."</p>
<p onclick="console.log('added')">Add to Cart</p>
</div>
<div>
<img src="//cdn.shopify.com/s/files/1/0268/4219/products/dishwasher-lemon.jpg?v=1605581517">
<div>Dishwasher Detergent Pods, Lemon</div>
@ipropper
ipropper / gist:da22825e33c0635dbc8acdab12f4e7a5
Created November 5, 2017 21:47
Fork-Join Inspired Implementation
public interface ThreadedJobCreator {
// this job is meant for read input in and prepare it for processing
JobBuilder buildFork(JobBuilder jobBuilder);
// This job will be the multithreaded bit
RecordProcessor<Record,Record> getRecordProcessor();
// This job is used to write the content received out at the very end
Job buildJoinJob(JobBuilder jobBuilder);
@ipropper
ipropper / certificatesJava.asc
Last active December 21, 2017 19:16
A guide for how to use openssl for debugging ssl connections, generating certificate, and using the java keystore and truststore

How to use Certificates Java

How to generate a self signed certificate and keystore with Java keytool

Run the following command:


@ipropper
ipropper / client.java
Last active October 18, 2022 05:19
Simple Mutual Authentication Client with SSL Sockets (JAVA)
//CLIENT
// this method is quick and dirty, but should get the service up and running
import javax.net.SocketFactory;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.IOException;
import java.io.OutputStreamWriter;