Skip to content

Instantly share code, notes, and snippets.

View seigel's full-sized avatar

James Seigel seigel

View GitHub Profile
@seigel
seigel / card-present.md
Created October 30, 2016 05:37
Stripe card-present API

Sending swiped card data to Stripe

Stripe's API supports sending both typed and swiped card data. Typed data is recorded when your customer enters their card details on your site and the data is sent to Stripe either by Stripe.js or through the Stripe API:

https://stripe.com/docs/api#create_charge

Swiped data is sent to Stripe when you have your own card swipe that reads the magnetic card strip on the back of your customers' cards. The raw output of the card swipe can then be submitted to the Stripe API.

The data contained on the magnetic strip of a card contains similar details to those embossed on the card but with some additions and repetitions. Details on the magnetic strip data can be found here:

@seigel
seigel / example.md
Created March 13, 2022 03:51
Sidekiq Multiple Queues

Command to start the sidekiq worker for multiple queues

sidekiq -q critical,2 -q default

... In a Procfile

worker: sidekiq -q critical,2 -q default

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@seigel
seigel / Brewfile
Created December 25, 2019 21:04 — forked from miry/Brewfile
MacOS Brewfile to install default applications. https://github.com/Homebrew/homebrew-bundle
cask_args appdir: "~/Applications"
tap "caskroom/cask"
cask 'sqleditor'
cask 'google-chrome'
cask 'homebrew/cask-versions/firefox-developer-edition'
# cask 'resilio-sync'
cask 'keybase'
# cask 'dashlane'
cask 'visual-studio-code'
@seigel
seigel / Info.md
Last active May 12, 2020 19:35
Nanoleaf / atVenu Working together Exploration

Is there an interesting opportunity?

I am going to tell you about some of the things that we are working on and how a partnership with Nanoleaf is interesting.

We are currently working on ways to help people at large gatherings, festivals, events, and concerts be able to safely get connected with merchandise they wish to purchase.

One of the problems we are looking at engineering a solution to, is to guide people to different locations to get what they are looking for without having to read small signs or follow a map. Imagine if you were to order food or merchandise on your phone and then when the items were ready, it sent you a notification which sent you a simple message of "Please proceed to...." and a lovely shade of blue showed up on your phone. This shade also shows at a booth or cart somewhere nearby indicating that this place is a match to where you need to go. Maybe it is even pulsing in synchronicty to the blue on your phone confirm the correct location to go to to acquire what you are lo

BEGIN MESSAGE.
GUnTSqSK8R3fpxz m2TUhKCbIvYnIMV rtQgJBRIuHLfwgS 8y8w6ZHOxwag5RL
Z64IaD4inHxEmY9 5MFG9NX6YoUTCKq 6Xr2MZHgg6y62EG w6nQlwX56GfsCHQ
e7Dooe6GLSyXYlD qFBGpRjxTnGXj5x lnpKBXIeRijXEis wRO01dWSK6kZJx1
JVRTMWY5zT6ZOch 8IECPI8b3eJdmbr JqSAM21.
END MESSAGE.

Gladiators Cup

Details

  • When: March 7th and 8th, 2020
  • What: Provincial level Fencing Tournament
  • Where: Bowness Community Centre

Overview

The Gladiator Cup, hosted by the Gladiators Fencing Club of Calgary is an event that draws fencers from the top fencing clubs in the province. It is an event that is for the fencers just getting started as well as the more seasoned competitors. The event is an important component of the season for fencers in this province.

It is hosted twice a year, once in the fall, and once in the first third of the year.

@seigel
seigel / GladiatorsCup.md
Last active January 8, 2020 18:37
info

Gladiators Cup

Details

  • When: March 7th and 8th, 2020
  • What: Provincial level Fencing Tournament
  • Where: Bowness Community Centre

Overview

The Gladiator Cup, hosted by the Gladiators Fencing Club of Calgary is an event that draws fencers from the top fencing clubs in the province. It is an event that is for the fencers just getting started as well as the more seasoned competitors. The event is an important component of the season for fencers in this province.

It is hosted twice a year, once in the fall, and once in the first third of the year.

Gladiators Cup

Details

  • When: March 7th and 8th, 2020
  • What: Provincial level Fencing Tournament
  • Where: Bowness Community Centre

Overview

The Gladiator Cup, hosted by the Gladiators Fencing Club of Calgary is an event that draws fencers from the top fencing clubs in the province. It is an event that is for the fencers just getting started as well as the more seasoned competitors.

Invitation

var brain = require('brain.js')
var fs = require('fs')
// configuration to be used in the brain
const config = {
binaryThresh: 0.5, // arbitary value
hiddenLayers: [3], // the size of the hidden layers in the network
activation: 'sigmoid' // activation function
}