This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importScripts('crypto-js.js'); | |
/** | |
* | |
* @param binaryText file binary text | |
* @param key password to encrypt | |
* @return {string} | |
*/ | |
function _base64ToBlob(b64Data, contentType, sliceSize) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* @ngdoc directive | |
* @name ngXwell.directive:fileManager | |
* @description | |
* # fileManager | |
*/ | |
angular.module('ngXwell') | |
.directive('fileManager', function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Contact Info: | |
* Created by imano on 6/27/17. | |
*/ | |
var express = require('express'); | |
var router = express.Router(); | |
var FitbitApiClient = require('fitbit-node'); | |
var config = require('../config-server'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import from mobx | |
import {action, configure, extendObservable, runInAction} from "mobx"; | |
// Configure mobx strictMode. so any changes to observable must be in actions. | |
configure({enforceActions: "observed"}); | |
/** | |
* Main Class | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gyroscopeSensor": [ | |
{ | |
"gdx": -0.4573170840740204, | |
"gz": 0.02392578125, | |
"gy": 0.021728515625, | |
"gdz": -0.792682945728302, | |
"gx": -1.01318359375, | |
"gdy": 0.030487805604934692, | |
"timeStamp": 1503436579763 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gyroscopeSensor": [ | |
{ | |
"gx": -1.0087890625, | |
"gdz": -1.432926893234253, | |
"gdx": 0.3658536672592163, | |
"gz": 0.021728515625, | |
"gy": 0.002685546875, | |
"gdy": 0.5182926654815674, | |
"timeStamp": 1479145194102 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"gyroscopeSensor":[{"gx":-1.0087890625,"gdz":-1.432926893234253,"gdx":0.3658536672592163,"gz":0.021728515625,"gy":0.002685546875,"gdy":0.5182926654815674,"timeStamp":1479145194102},{"gx":-1.008056640625,"gdz":-1.4634146690368652,"gdx":0.4268292784690857,"gz":0.022216796875,"gy":0.003662109375,"gdy":0.4573170840740204,"timeStamp":1479145194235},{"gx":-1.008544921875,"gdz":-1.432926893234253,"gdx":0.3658536672592163,"gz":0.021240234375,"gy":0.00244140625,"gdy":0.4573170840740204,"timeStamp":1479145194367},{"gx":-1.0087890625,"gdz":-1.432926893234253,"gdx":0.3048780560493469,"gz":0.021484375,"gy":0.00341796875,"gdy":0.4268292784690857,"timeStamp":1479145194484},{"gx":-1.010498046875,"gdz":-1.4634146690368652,"gdx":0.3658536672592163,"gz":0.0205078125,"gy":0.00341796875,"gdy":0.396341472864151,"timeStamp":1479145194641},{"gx":-1.00732421875,"gdz":-1.4939024448394775,"gdx":0.3048780560493469,"gz":0.021240234375,"gy":0.0009765625,"gdy":0.4268292784690857,"timeStamp":1479145194748},{"gx":-1.009765625,"gdz":-1.49390 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('coachApp').service("parseAngular", ['$q', '$filter', function ($q,$filter) { | |
// keep the live query out, so we don't create duplicate! | |
var liveQuery={}; | |
// parse 3 class | |
var Live = function (scope, child, query, live) { | |
/** | |
* private properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports=function(array,bulkSize,job){ | |
if (!array) throw new Error('Array is not specified'); | |
if (!job) throw new Error('Must define the job'); | |
var i = 0; | |
var j = array.length; | |
var chunkArr = []; // this keeps the chunk values | |
var chunk=bulkSize || 500000; // default value is half a million |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window,$,ejs){ | |
window.Gstrap={}; // define g | |
Gstrap.framework = { | |
version: 0.31, | |
description: "Mini modular single page Javascript framework built on top of jQuery and EJS.co", | |
developer: "Iman Khaghani Far", | |
contact: "[email protected]", | |
license: "MIT", | |
repository: "https://github.com/imana97/gstrap" | |
}; |
NewerOlder