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 / tutorial.sh
Last active January 12, 2021 02:32
Docker Tutorial
# docker tutorial
$ docker run --name repo alpine/git clone https://github.com/docker/getting-started.git
$ docker cp repo:/git/getting-started/ .
$ cd getting-started
$ docker build -t docker101tutorial .
$ docker run -d -p 80:80 --name docker-tutorial docker101tutorial
$ docker tag docker101tutorial awatson1978/docker101tutorial
$ docker push awatson1978/docker101tutorial
@awatson1978
awatson1978 / react.class.to.pure.function.refactor.md
Last active January 12, 2020 05:29
React Class to Pure Function Refactor

Refactoring from React Class to Pure Function

  1. Comment out import statements to material-ui and react-bootstrap.
import { CardText, Checkbox } from 'material-ui';
import { Table } from 'react-bootstrap';
  1. Remove React Mixin.
@awatson1978
awatson1978 / blaze.to.react.refactor.md
Last active June 9, 2019 06:32
Blaze to React Refactor

Step 1 - Template Skeleton

The first step in refactoring Blaze to React is to sketch out the skelaton of the new React component, based on the Blaze template. There are a few concrete steps to do first. We save data flows, methods, styling, and other conserations for steps 2 and 3. In this first phase, we're looking to implement structural elements and to make sure that our component compiles within the build pipeline.

Step 1.1 - Decide on template name

First step is to grab the name from the template that's going to be refactored. In this example, quick_rate_system.

<template name="quick_rate_system">
@awatson1978
awatson1978 / vscode.extensions.md
Created June 6, 2019 11:12
VSCode - Meteor Extensions.md

Extensions can be found in:

~/.vscode/extensions
HookyQR.beautify-1.3.0
PeterJausovec.vscode-docker-0.0.26
Sword.vscode-material-ui-snippets-1.0.1
cmstead.jsrefactor-2.18.2
@awatson1978
awatson1978 / allscripts-tw171fmh-report.md
Last active November 19, 2018 22:41
allscripts-tw171fmh-report.md

Connectathon System Integration Report

Systems Tested

https://tw171fmh.open.allscripts.com/FHIR  
https://tw171fmh.open.allscripts.com/open/3  

Client Application

https://www.zyxware.com/articles/4027/how-to-delete-files-permanently-from-your-local-and-remote-git-repositories
```
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch FOLDERNAME" -- --all
# Once this is done run the following commands to clean up the local repository:
rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --prune=now
git gc --aggressive --prune=now
var user = Meteor.user();
var centroid = user.profile.locations.home;
var coordinatesArray = [centroid.longitude, centroid.latitude];
Locations.find({
location:
{ $near :
{
$geometry: { type: "Point", coordinates: coordinatesArray },
$minDistance: 1000,