Skip to content

Instantly share code, notes, and snippets.

api.get('/', function (request) {
var uuid = "FAKE_UUID";
var value = "543";
var data = [ {
record_id: 0,
device_id: uuid,
bladder_pressure: value,
my_first_instrument_complete: "2"
}]
var patList = {};
var fs = require('fs');
var myRequest = require('request');
function saveFile(patId, obj) {
fs.writeFile(patId+".json", JSON.stringify(obj), function(err) {
if(err) {
return console.log(err);
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"description": "MyCap Active Task Tapping Test Results",
"data": {
"values": [
{
"locationX": "97.3333282470703",
"timestamp": "0.0",
"buttonIdentifier": ".Left",
"locationY": "520.0"
@jschappet
jschappet / example ruby
Last active April 26, 2018 15:52
Does what I'm trying to do here make sense?
var patList = {};
var fs = require('fs');
function saveFile(patId, obj) {
fs.writeFile(patId+".json", JSON.stringify(obj), function(err) {
if(err) {
return console.log(err);
}
//console.log("The file was saved: %s" , patId+".json");

Keybase proof

I hereby claim:

  • I am jschappet on github.
  • I am jschappet (https://keybase.io/jschappet) on keybase.
  • I have a public key ASDgzgxv2Y88E44xGbIoDVjPRc7jQ1tK5b1lxiOM_mdDAgo

To claim this, I am signing this object:

@jschappet
jschappet / jump_host.py
Created April 19, 2017 14:00
Jump Host Script for SecureCRT - Python Script
# $language = "python"
# $interface = "1.0"
# Jump Host Script
# This script is intended to ssh from current host to
# host listed in the session name
# it uses the last portion of the Session Path as SSH Target
import SecureCRT
[
{
"id": "305c326f.cfa3ce",
"type": "inject",
"z": "2c682b6d.d397d4",
"name": "Emit Time",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
/**
* Remixer 1: @herkulano (http://www.herkulano.com)
* Remixer 2: @hotappsfactory (http://www.hotappsfactory.com)
* Thanks to: Niels Bosma (niels.bosma@motorola.com)
*/
var folder = Folder.selectDialog();
var document = app.activeDocument;
var suffix;
var boardSize;
@RequestMapping( value = "update/{hostId}", method = RequestMethod.POST )
@ResponseBody
public String updateValues(@PathVariable("hostId") String hostId,
@RequestParam("name") String attrName,
@RequestParam("value") String attrValue ) {
Host host = ictssysadminDaoService.getHostService().findById( Integer.parseInt(hostId ));
if (attrName.equals("description")) {
host.setDescription(attrValue);
}
@jschappet
jschappet / gist:8928cffff46b1d25d5b3
Last active August 29, 2015 14:07
How to implement menu show/hide
//In the JSP Menu div add "in" to the class
${menuLocation['Host']}
In Abstract Controller load Menu Location Variable
@ModelAttribute(value = "menuLocation")
public Map<String, String> getPath(HttpServletRequest req) {