Skip to content

Instantly share code, notes, and snippets.

@johnzondr
johnzondr / webpack.server.config.js
Last active January 21, 2019 10:34
Webpack config for angular 6 SSR
// Work around for https://github.com/angular/angular-cli/issues/7200
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: {
// This is our Express server for Dynamic universal
server: './server.ts',
// This is an example of Static prerendering (generative)
@johnzondr
johnzondr / valid.rb
Created August 12, 2015 00:43
valid move
x_position = 0
y_position = 0
possible_moves = []
#vertical
vert_x =Array.new(8, x_position)
vert_y =(0..7).to_a
ary_vert = vert_x.zip(vert_y)
@johnzondr
johnzondr / quiz3.rb
Created July 6, 2015 16:45
oop team firehose quiz 3
class Team
attr_accessor :name, :sport
def initialize(name, sport)
@name = name
@sport = sport
end
end