Skip to content

Instantly share code, notes, and snippets.

View jfrux's full-sized avatar
👨‍💻
Full send daily.

jfrux jfrux

👨‍💻
Full send daily.
View GitHub Profile
@jfrux
jfrux / order-template.liquid
Created August 17, 2023 11:58 — forked from enamhasan/order-template.liquid
Shopify Order Printer Template with product image, variations and line item properties
<p style="float: right; text-align: right; margin: 0;">
{{ "now" | date: "%m/%d/%y" }}<br />
Invoice for {{ order_name }}
</p>
<div style="float: left; margin: 0 0 1.5em 0;" >
<strong style="font-size: 2em;">{{ shop_name }}</strong><br /><br />
{{ shop.address }}<br/>
{{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}<br/>
{{ shop.country }}
@jfrux
jfrux / gist:5c56b0c90cb7bb7efe6778ade0629d5a
Created December 12, 2018 16:21 — forked from Startouf/gist:91d3b5eab004f04dfbb0d068b311ff3e
Mongoid adapter for jsonapi_suite
# lib/jsonapi/adapters/transactionless_mongoid_adapter.rb
module Jsonapi
module Adapters
# Mongoid transactionless adapter
# See https://github.com/jsonapi-suite/jsonapi_compliable/blob/master/lib/jsonapi_compliable/adapters/abstract.rb
#
# @author [Cyril]
#
class TransactionlessMongoidAdapter < JsonapiCompliable::Adapters::Abstract
def sideloading_module
@jfrux
jfrux / 0_reuse_code.js
Created August 10, 2017 12:55
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>OnDemand</key>
<false/>
<key>KeepAlive</key>
<true/>
@jfrux
jfrux / initializer-session.coffee
Last active August 29, 2015 14:17
CoffeeScript version with emberfire 1.4.2, firebase ~2.1.0, also attempting to add authWithPassword
`import Ember from 'ember'`
`import Firebase from 'firebase'`
`import config from '../config/environment'`
ref = new Firebase(config.firebase);
initialize = (container, application) ->
session = Ember.Object.extend
authed: false
init: () ->
@jfrux
jfrux / guide.sh
Created February 11, 2014 00:54 — forked from teamon/guide.sh
# Install pow
$ curl get.pow.cx | sh
# Install powder
$ gem install powder
# See that firewall is fucked
$ sudo ipfw show
00100 0 0 fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in <- THIS ONE!!!
65535 81005 28684067 allow ip from any to any
@jfrux
jfrux / guide.sh
Created February 11, 2014 00:54 — forked from teamon/guide.sh
# Install pow
$ curl get.pow.cx | sh
# Install powder
$ gem install powder
# See that firewall is fucked
$ sudo ipfw show
00100 0 0 fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in <- THIS ONE!!!
65535 81005 28684067 allow ip from any to any
@jfrux
jfrux / guide.sh
Last active January 3, 2016 03:19 — forked from teamon/guide.sh
For newer versions of Mac OS X
# Install pow
$ curl get.pow.cx | sh
# Install powder
$ gem install powder
# See Pow takes over port 80 in the firewall... even though nginx was using it...
$ sudo ipfw show
00100 0 0 fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in <- THIS ONE!!!
65535 81005 28684067 allow ip from any to any
@jfrux
jfrux / ab1.cfm
Last active December 19, 2015 03:08 — forked from abirnbaum/ab1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<CFOUTPUT>
<!--- Check to see if Phone 2 even exists --->
<cfif #Form.Phone2# NEQ '' />
@jfrux
jfrux / .gitignore
Created June 25, 2013 12:45 — forked from redoPop/.gitignore
Altered this a bit for my needs...
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your