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:ec27f561ca3e88716e0d
Created November 4, 2015 05:05
Package Upgrade/Migration Logic
````js
//packages/clinical-router/lib/version_conflict_error.js
if (Package['cmather:iron-router']) {
throw new Error("\n\n\
Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n\
You can see which cmather:iron-{x} packages have been installed by using this command:\n\n\
> meteor list\n\n\
Can you remove any installed cmather:iron-{x} packages like this:\
@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/
@awatson1978
awatson1978 / gist:83174af4305e18127440
Last active August 8, 2016 02:44
Adding Example Gitmodules to Cookbook
cd examples
git clone https://github.com/awatson1978/clinical-scheduling.git
git add --all .
git submodule init
git submodule update
git commit -a -m 'added submodules'
git push origin master
https://github.com/blog/2104-working-with-submodules
<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"]')
https://github.com/jalik/jalik-ufs
@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