Skip to content

Instantly share code, notes, and snippets.

View awatson1978's full-sized avatar
🏠
Working from home

Abigail Watson awatson1978

🏠
Working from home
View GitHub Profile
@awatson1978
awatson1978 / gist:0effd7d77f01522d5a00
Created January 28, 2016 22:02
Debugging/Configuring Circle CI
- add circle.yml to project
- delete GitHub repo CircleCI services
- delete GitHub repo deploy keys
- turn off Project Watching on Circle CI
Should now be in a default state.
- turn on Project Watching on Circle CI
@awatson1978
awatson1978 / Jsx
Created April 28, 2016 13:48
React Swipe Card Component
import React from 'react';
import ProfileInfo from './ProfileInfo.jsx';
const DRAG_THRESHOLD_PERCENTAGE = 30;
class VoteProfile extends React.Component {
constructor(props) {
super(props);
https://www.npmjs.com/package/python-shell
http://www.r-bloggers.com/new-in-v8-calling-r-from-javascript-from-r-from-javascript/
<link rel="prefetch" href="/images/landing/hero.jpg">
@awatson1978
awatson1978 / gist:d0a24909d2e1091745d06e8334b850e7
Last active August 24, 2016 21:13
Nightwatch - Forms and Inputs
Daniel Rinehart
https://groups.google.com/forum/#!searchin/nightwatchjs/radio|sort:relevance/nightwatchjs/PV-zaHLRtsA/2nbZ8v1ud84J
```
module.exports = {
'Form': function(browser) {
browser
.url('http://nightwatch-form.herokuapp.com/')
.setValue('input[name="first_name"]', 'First')
.setValue('input[name="last_name"]', 'Last')
.click('select[name="dob_month"] option[value="3"]')
@awatson1978
awatson1978 / gist:2f73120565f295647590d2836e56e4df
Created August 28, 2016 14:40
Rendering Blaze into a React Template
http://stackoverflow.com/questions/36269581/meteor-rendering-a-blaze-template-within-a-react-template
To render blaze from react, you make a wrapper class:
```
AccountsWrapper = React.createClass({
componentDidMount() {
this.view = Blaze.render(Template.Accounts,
React.findDOMNode(this.refs.container));
},
https://github.com/jalik/jalik-ufs
@awatson1978
awatson1978 / gist:487b121bb6375631bd93feaf4e889537
Last active June 2, 2017 21:53
Git - Pruning, Grafting, Splicing, Graphing

Pruning, Grafting, Splicing

A team member (or self) has checked in a few bad commits into GitHub and broken the build. Here's how to move their commits into a new branch, and bring master back to green.

git pull origin development
git checkout -b prune
git push origin prune

git checkout development
git reset --hard 2c9ab34fe1bee4c0c124ab6da35e47c7ee020619 
@awatson1978
awatson1978 / gist:8104f131fd17c20b0073bcd90e30c2cd
Created September 11, 2016 14:15
Principles of Clinical Meteor
One Common Language
Verified and Validated
Database Everywhere
Follow the Ecosystem
Isomorphisms Equal Productivity
Ergonomic Design
Standards Compliant