Skip to content

Instantly share code, notes, and snippets.

View baumicon's full-sized avatar

Michael Reyes baumicon

  • Lexipol
  • San Diego, CA
View GitHub Profile
@baumicon
baumicon / docker-compose.yml
Created November 17, 2022 17:50 — forked from schacon/docker-compose.yml
Docker Compose file for ruby, postgres and redis
version: '3'
services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
args:
VARIANT: 2.6
NODE_VERSION: "lts/*"
volumes:
@baumicon
baumicon / merge-a-forked-gist.md
Created May 12, 2022 19:40 — forked from arthurattwell/merge-a-forked-gist.md
Merge someone's fork of your gist into your gist

How to merge someone's fork of your gist into your gist

I created a gist, then someone else forked it and improved it. With a full repository, I might get their improvements in a pull request. But that isn't availabe for gists.

This is how to get their changes into my gist.

  1. Clone your own gist

     git clone git@gist.github.com:YOUR_GIST_ID_GOES_HERE.git
    
key in (ABC-1234, ABC-5678) AND assignee in ("Assignee Name", "Assignee Name") ORDER BY created DESC
key in (ABC-1234, ABC-5678) ORDER BY created DESC
@baumicon
baumicon / standard_google_tag_manager_transaction_event_tracking_with_bigcommerce.txt
Created August 16, 2021 21:33
Standard Google Tag Manager Transaction Event tracking with BigCommerce
<script>
window.dataLayer = window.dataLayer || [];
var transaction = {};
transaction.transactionProducts = [];
function addTrans(orderID, store, total, tax, shipping, city, state, country) {
transaction.transactionId = orderID;
transaction.transactionAffiliation = store;
transaction.transactionTotal = parseFloat(total);
@baumicon
baumicon / customized_google_tag_manager_transaction_event_tracking_with_bigcommerce.txt
Last active August 16, 2021 21:31
Customized Google Tag Manager Transaction Event tracking with BigCommerce
<script>
window.dataLayer = window.dataLayer || [];
var transaction = {};
transaction.transactionProducts = [];
function addTrans(orderID, store, total, tax, shipping, city, state, country) {
transaction.transactionId = orderID;
transaction.transactionAffiliation = store;
transaction.transactionTotal = parseFloat(total);
@baumicon
baumicon / ruby_on_rails_deployment.md
Created May 8, 2020 22:14 — forked from zentetsukenz/ruby_on_rails_deployment.md
Deploy Ruby on Rails application with Docker Compose and Capistrano with ease

Docker

Files and Folders.

|
|\_ app
|...
|\_ docker
| |
@baumicon
baumicon / How to connect a PS3 controller.md
Created February 13, 2016 00:05 — forked from hlung/How to connect PS3 controller to a Mac or PC.md
How to connect PS3 controller on Mac OSX, PC

How to connect PS3 controller on Mac OSX, PC, etc.

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps:

@baumicon
baumicon / index.html
Created February 11, 2013 23:47
A CodePen by Michael. Squishy Toggle Buttons - Simulating squishy rubber (elastomer) buttons, inspired by designs on Dribbble
<div class="container">
<div class="toggle">
<input type="checkbox">
<span class="button"></span>
<span class="label">+</span>
</div>
<div class="toggle">
<input type="checkbox" checked>
<span class="button"></span>
<span class="label">–</span>
@baumicon
baumicon / index.html
Created February 11, 2013 23:47
A CodePen by Michael. Fancy input field - Trying to make input field that is a bit more fancy than the regular boring box. Works nicely on Chrome/FF/Safari but requires some tweaking on iOS and IE.
<div id="container">
<div id="input"></div>
<input type="text" id="hiddenInput">
</div>