Skip to content

Instantly share code, notes, and snippets.

View jbaxleyiii's full-sized avatar
💼
Moved to management

James Baxley jbaxleyiii

💼
Moved to management
View GitHub Profile
@jbaxleyiii
jbaxleyiii / gist:f6b15218c728c1540fba
Created July 13, 2014 18:53
Regex to split string by commas unless in array or object
/[,](?=[^\]]*?(?:\[|$))(?=[^\}]*?(?:\{|$))/g
<h2>How Much Is Your Tithe?</h2>
<p class="light text--constrained">Enter the amount you were paid before taxes or anything else was taken out of your paycheck.</p>
<form id="tithe-calc" onsubmit="return toSubmit();" class="hard" action="#" data-parsley-validate>
<p>
<label for="gross">Paycheck Gross Amount</label>
<input id="gross" type="text" placeholder="400.00" class="text" />
</p>
<button id="submit" type="submit" class="ready submit">Calculate Tithe</button>
# User for local dev
FROM app/base
RUN npm install -g orion-cli
# This forces package-catalog update. Should speed up further runs
RUN meteor show meteor-platform
@jbaxleyiii
jbaxleyiii / apollos-states.md
Last active August 29, 2015 14:22
Thoughts on template states in apollos

Apollos States

Applications built on Apollos can expose two types of client side views: pages and cards.

Pages exists only via hitting a specific route and are meant to be the more traditional style view (think server side rendered). The subscription of data for pages happens entirely within the Apollos.Router route for the given page. Ideally these are set or configured) only on the top level application view (i.e. the site or app that

@jbaxleyiii
jbaxleyiii / Norma
Created June 30, 2015 18:38
Docker setup for Norma + Meteor projects
tasks:
meteor:
src: "workbench"
watch: false
docker:
dev: true
endpoint: "NewSpring/norma-docker"
web:
@jbaxleyiii
jbaxleyiii / Norma
Created July 1, 2015 18:23
Proposed groups in Norma
name: "apollos-give"
tasks:
bower:
group: "assets"
"/workbench":
settings: "https://github.com/NewSpring/settings.git"
@jbaxleyiii
jbaxleyiii / newspring-styles.md
Last active August 29, 2015 14:25
NewSpring

To get all of our updated and lean (12kb) styles use this -->

<link rel="stylesheet" href="//s3.amazonaws.com/cdn.newspring.cc/newspring/master.css">

If you JUST want the newspring icon use this:

.newspring--icon {
  border-radius:50% 47% 0 47%;
  position:relative;
@jbaxleyiii
jbaxleyiii / trigger-deploys.ps1
Created October 21, 2015 03:43
Trigger a deploy from one appveryor project to another
$token = ''
$headers = @{ "Authorization" = "Bearer $token"}
$body = @{
accountName = "NewSpring";
projectSlug = "rock";
branch = $ENV:APPVEYOR_REPO_BRANCH
}
$bodyAsJson = $body | ConvertTo-json
Invoke-Restmethod -uri 'https://ci.appveyor.com/api/builds' -Headers $headers -Method Post -Body $bodyAsjson -ContentType "application/json"
@jbaxleyiii
jbaxleyiii / 15-bucks.html
Last active December 10, 2015 15:29
15 Bucks Campaign
<form class="give-form">
<h3">I'm Giving</h3>
<div class="select-wrapper">
<select name="gift-quantity" class="giftQuantity">
<option value="">Choose!</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>