Skip to content

Instantly share code, notes, and snippets.

View sethbergman's full-sized avatar
🐋
Building Docker Images for Dell Technologies

Seth Bergman sethbergman

🐋
Building Docker Images for Dell Technologies
View GitHub Profile
@sethbergman
sethbergman / app.html
Last active July 19, 2017 06:54 — forked from Vheissu/app.html
Checking for user provided slots
<template>
<require from="./modal"></require>
<modal>
<div slot="modalHeader">This is user provided header content.</div>
</modal>
</template>
@sethbergman
sethbergman / gulpfile.js
Created July 5, 2017 10:15 — forked from ktmud/gulpfile.js
An example gulpfile.js with bower components and live reload support
var BatchStream = require('batch-stream2')
var gulp = require('gulp')
var coffee = require('gulp-coffee')
var uglify = require('gulp-uglify')
var cssmin = require('gulp-minify-css')
var bower = require('gulp-bower-files')
var stylus = require('gulp-stylus')
var livereload = require('gulp-livereload')
var include = require('gulp-include')
var concat = require('gulp-concat')
// server/app.js
const express = require('express');
const morgan = require('morgan');
const path = require('path');
const app = express();
// Setup logger
app.use(morgan(':remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] :response-time ms'));
@sethbergman
sethbergman / automobile.ipynb
Created May 18, 2017 17:52 — forked from martinwicke/automobile.ipynb
Estimator demo using Automobile dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
System: Host: xunil Kernel: 4.10.0-20-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.7 (Gtk 2.24.30) dm: mdm Distro: Linux Mint 18.1 Serena
Machine: System: ASUSTeK (portable) product: K501UX v: 1.0
Mobo: ASUSTeK model: K501UX v: 1.0 Bios: American Megatrends v: K501UX.209 date: 01/20/2016
CPU: Dual core Intel Core i7-6500U (-HT-MCP-) cache: 4096 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10368
clock speeds: min/max: 400/3100 MHz 1: 477 MHz 2: 487 MHz 3: 499 MHz 4: 490 MHz
Graphics: Card-1: Intel Sky Lake Integrated Graphics bus-ID: 00:02.0 chip-ID: 8086:1916
Card-2: NVIDIA GM107M [GeForce GTX 950M] bus-ID: 01:00.0 chip-ID: 10de:139a
Display Server: X.Org 1.18.4 driver: intel Resolution: [email protected], [email protected]
@sethbergman
sethbergman / sertice.ts
Created April 27, 2017 07:05 — forked from deebloo/sertice.ts
Angular2 Service Pattern for configurability and reusability
// Standard Service Class
export class MyService {
constructor(private config) { }
}
// factory for creating new instances of the service
function createMyService(config = {}) {
return new MyService(config);
}
var myWorker = $worker().create(function () {
self.postMessage('Hello World');
});
myWorker.run().then(function (e) {
console.log(e.data); // 'Hello World'
});
@sethbergman
sethbergman / spa-server.js
Last active May 5, 2017 00:10 — forked from deebloo/spa-server.js
A small sample server for SPA apps with compression.
// var fallback = require('express-history-api-fallback');
// var express = require('express');
// var compress = require('compression');
// var app = express();
// var root = __dirname + '/dist';
// app.use(compress());
// app.use(express.static(root));
// app.use(fallback('index.html', { root: root }));
@sethbergman
sethbergman / index.html
Created April 23, 2017 23:15 — forked from devoncarew/index.html
Sunflower
<!-- Copyright 2011 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>Dr. Fibonacci's Sunflower Spectacular</h2>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@sethbergman
sethbergman / xterm-256color.svg
Created April 21, 2017 06:42 — forked from jasonm23/xterm-256color.svg
Xterm 256color mode color chart, organised into sections.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.