Skip to content

Instantly share code, notes, and snippets.

Working from home

Rob B rob-balfre

Working from home
View GitHub Profile
View rollup.config.js
import resolve from 'rollup-plugin-node-resolve';
import replace from 'rollup-plugin-replace';
import commonjs from 'rollup-plugin-commonjs';
import svelte from 'rollup-plugin-svelte';
import { terser } from 'rollup-plugin-terser';
import config from 'sapper/config/rollup.js';
import pkg from './package.json';
import alias from '@rollup/plugin-alias';
const path = require('path');
rob-balfre / babel.config.js
Last active Oct 13, 2020
Svelte webpack IE11
View babel.config.js
const presets = [
targets: ['last 2 versions', 'ie >= 11'],
const plugins = [
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 / 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';
selector: '[appClickOutside]'
export class ClickOutsideDirective {
@Output() appClickOutside: EventEmitter<any> = new EventEmitter();
constructor(private _elementRef: ElementRef) {
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';
selector: 'app-date-time-picker',
templateUrl: './date-time-picker.component.html',
styleUrls: ['./date-time-picker.component.scss'],
providers: [
rob-balfre /
Last active Mar 26, 2016 — forked from pjnovas/
Complete Install on Ubuntu Server of Nodejs + MongoDB + NGINX

##Ubuntu Server


sudo apt-get install g++ curl libssl-dev apache2-utils git-core make
curl -sL | sudo -E bash -
sudo apt-get install -y nodejs