Skip to content

Instantly share code, notes, and snippets.

@jlbruno
jlbruno / code-check.yml
Created June 19, 2024 04:00
github action for running shopify theme check while ignoring commits from shopify[bot]
# .github/workflows/code-check.yml
name: Code Check
on: [push]
jobs:
code-check:
name: Code Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
@jlbruno
jlbruno / DebugHelper.js
Last active March 22, 2024 18:36
SFCC object debug - Useful for debugging pdict
'use strict';
/**
* A place to debug an object from an isml file
* Useful to pass in pdict to see what it contains
*
* @param debugObject Object you'd like to see in the debugger
* @param debugLabel Optional label for the debugObject
*
**/
@jlbruno
jlbruno / pinmarklet.md
Created May 26, 2020 18:16 — forked from kentbrew/pinmarklet.md
How to recreate your long-lost Pinterest bookmarklet.

How to recreate your long-lost Pinterest bookmarklet.

Right-click your bookmarks bar and choose Add Page (Chrome) or New Bookmarklet (Firefox).

In Name, put this:

Pin It

In URL, put this:

@jlbruno
jlbruno / ideal-employment.md
Created April 13, 2016 20:37 — forked from mkivikoski/ideal-employment.md
A checklist of the qualities you'd like to see your next company have.

We write resumes to convince employers to hire us. What if we created a list for what we were looking for in our next employer and their environment?

This allows both sides to cut through the game of telephone, establish what you are looking for in your role, and define the type of organization you're looking to work for. Fork, modify and add this checklist to your portfolio site to quicken the pace of getting through companies that don't match your criteria.

--

@jlbruno
jlbruno / mailer.asp
Last active August 29, 2015 14:13
Local mailer
<HTML>
<HEAD>
</HEAD>
<BODY>
<% if request.querystring("post") <> "y" then %>
<form name="myForm" action="mailer.asp?post=y" method="post">
<table>
<tr>
<td>
@jlbruno
jlbruno / css_resources.md
Last active August 29, 2015 14:08 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@jlbruno
jlbruno / javascript_resources.md
Last active August 29, 2015 14:08 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@jlbruno
jlbruno / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jlbruno
jlbruno / db_subs.asp
Created October 3, 2013 11:53
Some old ASP functions for the early 2000's....just posting for backup
<%
'on error resume next
'******************************************************************************
' db_subs.asp '
' '
'******************************************************************************
dim dbSyc, DBcmd
'*****************************************************************************
<?php
// Set these dependant on your BB credentials
$username = 'username';
$password = 'password';
// Grab the data from BB's POST service and decode
$json = stripslashes($_POST['payload']);
$data = json_decode($json);