- 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
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
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 = { |
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
{ | |
"zipcode": { | |
"_meta": { | |
"type": "ZipCode", | |
"keys": [ | |
{"new": "zipcode", "existing": "zipcode"} | |
], | |
"serialization_formats": { | |
"created": "date-time-fractional" | |
}, |
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
<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> |
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 axios from "axios"; | |
import router from "../../router"; | |
const state = { | |
authenticated: false, | |
auth: {}, | |
loggedin_siteid: null, | |
login_inprogress: false | |
}; |
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
var rob = { | |
orderid: 'ORDER123', | |
customerid: '7', | |
customer: { | |
firstname: 'Rob', | |
lastname: 'Neville' | |
}, | |
observed: false, | |
orderlines: [ | |
{ |
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
DO $$ | |
DECLARE | |
d1 pickupcapacities.deliverydate%TYPE; | |
d2 pickupcapacities.deliverydate%TYPE; | |
day pickupcapacities.dayofweek%TYPE; | |
BEGIN | |
d1 := '11-05-2017'; | |
d2 := '12-31-2017'; | |
LOOP |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
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
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) => { |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
}); |
NewerOlder