Skip to content

Instantly share code, notes, and snippets.

View BrianJVarley's full-sized avatar

Brian Varley BrianJVarley

View GitHub Profile
@BrianJVarley
BrianJVarley / encryptTest.spec.js
Last active September 28, 2017 08:03
Test spec for encrypt web service call with Mocha and Chai
import * as constDefs from '../../utility/constDefinitions'
import React, {
Component
} from 'react';
import chai from 'chai';
import axios from 'axios';
var assert = chai.assert;
var passwordsToTest = ["password", "password123", "testPassword!23"];
import { Meteor } from 'meteor/meteor';
import parse from 'csv-parse';
import fs from 'fs';
export const ParsingInterface = {
parseDataSync: function (filePath) {
const data = fs.readFile(path);
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');
import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Table from 'grommet/components/Table';
import TableHeader from 'grommet/components/TableHeader';
import TableRow from 'grommet/components/TableRow';
import Heading from 'grommet/components/Heading';
import Spinning from 'grommet/components/icons/Spinning';
public async Task<ObservableCollection<ZoneInfo>> ReadZones(string tableName)
{
string fileName = string.Format("{0}.csv", tableName);
// access the local folder
StorageFolder appFolder =
Windows.ApplicationModel.Package.Current.InstalledLocation;
Stream fileStream = await appFolder.GetFileAsync().OpenStreamForReadAsync(fileName);
using CsvHelper;
using Parking_Tag_Picker_WRT.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;
<Page x:Class="Parking_Tag_Picker_WRT.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Parking_Tag_Picker_WRT"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
namespace Parking_Tag_Picker_WRT.ViewModel
{
public class TagRequestViewModel : INotifyPropertyChanged
{
public RelayCommand TagRequestCommand
{
get;
private set;
}
using Parking_Tag_Picker_WRT.Models;
using SQLite;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Parking_Tag_Picker_WRT.Models;
using SQLite;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.Storage;