Skip to content

Instantly share code, notes, and snippets.

View jspenc72's full-sized avatar

Jspenc72 jspenc72

  • Redwood City, CA
View GitHub Profile
@jspenc72
jspenc72 / imagej
Created March 16, 2017 01:28
imagej
# Image J Instructions
## Step 1 - Open PNG, JPG or TIF
Find and launch the OS X java application ImageJ (64 bit; menu choices and instructions were developed with the 64-bit version 1.43u of ImageJ).
ImageJicon.pngImageJ Icon
Open the gel photo. Rotate the image (if needed) so that wells are precisely horizontal across the top of the gel photo. The rotation function is accessed via the Image menu with Image→Transform→Rotate 90 degrees left/right or for smaller angle adjustments with Image→Transform→Rotate... and enter the desired angle of rotation. Positive values will rotate image in clockwise direction; negative values will rotate image in counterclockwise direction.
Use the Rectangle-selection tool (see figure below) to crop the gel image so that just lanes of interest are visible. The crop function is executed with via the Image menu with Image→Crop.

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync
@jspenc72
jspenc72 / bluebird_example.js
Created February 5, 2017 23:58
bluebird_example.js
var Promise = require("bluebird");
var request = require('request');
function getData(){
return new Promise(function (resolve, reject) {
console.log('inside promise');
request('http://alphaapi.readymed.com/api/projects/', function (error, response, body) {
console.log('got json',body.length);
reject(true);
@jspenc72
jspenc72 / dev_eval_2016
Created December 23, 2016 18:00
Developer Evaluation Assignment
Front End Developer Assessment
The evaluation has two parts. Part 1 you'll complete on your own with as much time as is needed. I anticipate it will take you a few days if you spend 1 hour each evening. Please do not rush this as you won't gain anything by finishing it sooner but kudos if you do... Part 2 you will be a pair programming session to be completed while screen sharing and you will be given ~30 minutes to complete.
Part 1:
Est 1 hour
I.A Scaffold an Angular 2 web app using angular-cli which uses Angular Material 2 or Bootstrap Alpha 4 and demonstrates the following:
a. Use of Parent and Child Routes
b. Use of Parent and Child Components (Set a variable in the parent, modify in the child components and pass changes back to the parent)
c. Form Validation using the Angular Forms module, example here: https://angular.io/docs/ts/latest/guide/forms.html
@jspenc72
jspenc72 / ionic-cheat-sheet.md
Last active May 26, 2017 17:38
Useful commands to streamline common tasks for ionic development.

Running Locally iOS

Listing available images

$ ./platforms/ios/cordova/lib/list-emulator-images
iPhone-5, 10.0
iPhone-5s, 10.0
iPhone-6, 10.0
iPhone-6-Plus, 10.0
@jspenc72
jspenc72 / cities.json
Last active September 22, 2016 18:55
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
#!/bin/bash
#### SETUP
# 1.) Create a simple point layer
curl -X POST -d '{"layer":"geom","lat":"lat","lon":"lon"}' --header "Content-Type:application/json" http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
# 2.) Add a spatial index
curl -X POST -d '{"name":"geom","config":{"provider":"spatial","geometry_type":"point","lat":"lat","lon":"lon"}}' --header "Content-Type:application/json" http://localhost:7474/db/data/index/node/
#!/bin/bash
#### SETUP
# 1.) Create a simple point layer
curl -X POST -d '{"layer":"geom","lat":"lat","lon":"lon"}' --header "Content-Type:application/json" http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
# 2.) Add a spatial index
curl -X POST -d '{"name":"geom","config":{"provider":"spatial","geometry_type":"point","lat":"lat","lon":"lon"}}' --header "Content-Type:application/json" http://localhost:7474/db/data/index/node/