Skip to content

Instantly share code, notes, and snippets.

Rob B rob-balfre

  • Sydney
Block or report user

Report or block rob-balfre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rob-balfre
rob-balfre / babel.config.js
Last active Sep 10, 2019
Svelte webpack IE11
View babel.config.js
const presets = [
[
'@babel/preset-env',
{
targets: ['last 2 versions', 'ie >= 11'],
}
]
];
const plugins = [
@rob-balfre
rob-balfre / server.js
Created May 27, 2018
Example of Sapper using Passport
View server.js
import express from 'express';
import passport from 'passport';
import {Strategy} from 'passport-github';
import compression from 'compression';
import sapper from 'sapper';
import serve from 'serve-static';
import {routes} from './manifest/server.js';
import App from './App.html';
import _ from '../SECRETS';
@rob-balfre
rob-balfre / click-outside.directive.ts
Created Apr 19, 2017
Angular Click Outside Directive
View click-outside.directive.ts
import { Directive, ElementRef, Output, EventEmitter, HostListener } from '@angular/core';
@Directive({
selector: '[appClickOutside]'
})
export class ClickOutsideDirective {
@Output() appClickOutside: EventEmitter<any> = new EventEmitter();
constructor(private _elementRef: ElementRef) {
}
@rob-balfre
rob-balfre / DateTimePickerComponent.ts
Created Apr 3, 2017
angular (v4) wrapper for flatpickr
View DateTimePickerComponent.ts
import { Component, ViewChild, AfterViewInit, Input, Output, EventEmitter, forwardRef } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import * as Flatpickr from 'flatpickr';
@Component({
selector: 'app-date-time-picker',
templateUrl: './date-time-picker.component.html',
styleUrls: ['./date-time-picker.component.scss'],
providers: [
@rob-balfre
rob-balfre / InstallationStack.md
Last active Mar 26, 2016 — forked from pjnovas/InstallationStack.md
Complete Install on Ubuntu Server of Nodejs + MongoDB + NGINX
View InstallationStack.md

##Ubuntu Server

NodeJS

sudo apt-get install g++ curl libssl-dev apache2-utils git-core make
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
You can’t perform that action at this time.