Skip to content

Instantly share code, notes, and snippets.

View robneville73's full-sized avatar

Rob Neville robneville73

View GitHub Profile
@robneville73
robneville73 / setupvscoderemote.md
Last active August 27, 2021 13:44
Setting up VS Code Remote Development

General

  • Install VS Code
  • Install Remote SSH plugin for VS Code
  • Click green connection bit in lower left corner of vs code
  • Provide SSH login target, i.e. ssh [email protected]
  • VS Code will prompt for password
  • Once connected, green connection bit should show SSH:1.2.3.4 to indicate that you're connected
  • Once connected, click on open folder, vs code will do an ls in the home directory, choose trunk
  • You're good to go
  • If you open a terminal within vs code, you'll automatically be dropped in as rarch in the home dir
describe('router interceptor tests', () => {
describe('if unauthenticated, store to route and go to login route', () => {
// :shrug: I have no idea why you have to do it like this
// and only here??
store.getters = {
'auth/authenticated': false
};
const to = { name: 'blah' };
let nextObj = {
@robneville73
robneville73 / extended-meta.json
Created April 5, 2018 17:04
sample changes to be made to json serialization
{
"zipcode": {
"_meta": {
"type": "ZipCode",
"keys": [
{"new": "zipcode", "existing": "zipcode"}
],
"serialization_formats": {
"created": "date-time-fractional"
},
@robneville73
robneville73 / Login.vue
Last active February 22, 2018 16:54
vue error capture problem
<template>
<v-container fluid>
<v-progress-linear v-if="loginInProgress" v-bind:indeterminate="true"/>
<v-layout xs12 column align-space-between>
<v-flex>
<v-form v-on:submit.prevent="login">
<v-layout column>
<v-flex>
<v-text-field v-model="username" :label="label('User.username')" required/>
</v-flex>
@robneville73
robneville73 / authenticate.js
Last active January 27, 2018 23:55
global guard not working
import axios from "axios";
import router from "../../router";
const state = {
authenticated: false,
auth: {},
loggedin_siteid: null,
login_inprogress: false
};
@robneville73
robneville73 / property_observer.js
Last active December 29, 2017 02:33
ECMAScript 5 way of redefining a property on an object at runtime with an explicit get/set pair that would allow one to emit an event (e.g. think redux action) upon certain property changes
var rob = {
orderid: 'ORDER123',
customerid: '7',
customer: {
firstname: 'Rob',
lastname: 'Neville'
},
observed: false,
orderlines: [
{
DO $$
DECLARE
d1 pickupcapacities.deliverydate%TYPE;
d2 pickupcapacities.deliverydate%TYPE;
day pickupcapacities.dayofweek%TYPE;
BEGIN
d1 := '11-05-2017';
d2 := '12-31-2017';
LOOP
import Ember from 'ember';
export default Ember.Component.extend({
});
reports: computed(function() {
return get(this, 'getReports').perform();
}),
firstReport: computed('reports.value.length', function() {
return get(this, 'reports.value.firstObject');
}),
someOtherThing: computed('reports.value.length', function() {
get(this, 'reports.value').forEach((report) => {
@robneville73
robneville73 / controllers.application.js
Created October 12, 2016 17:12 — forked from samselikoff/mirage.config.js
Mirage dev boilerplate
import Ember from 'ember';
export default Ember.Controller.extend({
});