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: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"]')
<link rel="prefetch" href="/images/landing/hero.jpg">
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 / 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);
@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 / 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
@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:\
let remote = DDP.connect(Meteor.settings.public.remote.url);
Meteor.connection = remote;
Accounts.connection = remote;
Meteor.users = new Mongo.Collection('users', remote);
Orders = new Mongo.Collection('orders', remote);
FlowRouter.subscriptions = function () {
this.register('workstation', Meteor.settings.remote.id);
@awatson1978
awatson1978 / gist:39cecf9ba5cd476ac85a
Last active August 29, 2015 14:27
Package.addComponet()
function addComponent(api, name, imports) {
  api.addFiles('components/' + name + '/' + name + '.html', 'client');
  api.addFiles('components/' + name + '/' + name + '.js', 'client');
  api.addFiles('components/' + name + '/' + name + '.styl', 'client');
  if(imports) {
    api.addFiles('components/' + name + '/skin.import.styl', 'client');
 api.addFiles('components/' + name + '/structure.import.styl', 'client');