Skip to content

Instantly share code, notes, and snippets.

View brian-lim-42's full-sized avatar
👨‍💻
Making the next great thing...

Brian Lim brian-lim-42

👨‍💻
Making the next great thing...
View GitHub Profile
#
# nginx simple Dockerfile
#
# Pull base image.
FROM ubuntu
# Install Nginx.
RUN \
Overall Comments
* Difficult to understand logic
* Magic numbers
* Consider rewriting with functional programming and not object oriented
Line by Line
import { makeVar } from '@apollo/client';
// could strongly type here
// leaving it dynamic for general use
type Store = { [key: string]: any }
const store: Store = {}
export const add = (key: string) => {
store[key] = makeVar(key);
1. [Build](#build)
1.1 [Build Images](#base-images)
1.1.1 [Current Base Images](#current-base-images)
1.2 [Special Folders](#special-folders)
1.3 [Build Manually](#build-manually)
1.3.1 [Infrastructure](#infrastructure)
1.3.2 [Services](#services)
1.4 [Current Services](#current-services)
1.4.1 [Adding a new service](#adding-a-new-service)
1.5 [Build Process Overview](#overview-of-build-process)
@import 'styles/variables/variables';
@import 'src/features/navigation/navigation.var';
.card {
&__container {
height: calc(100% - 3rem);
.card {
display: flex;
flex-direction: column;
@brian-lim-42
brian-lim-42 / webpack.config.prod.js
Created July 5, 2018 14:42
Webpack from create-react-app ejected 2018-05-07
'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
@brian-lim-42
brian-lim-42 / Gruntfile.js
Created May 21, 2017 23:12
Portion of working Gruntfile.js
grunt.initConfig({
babel: {
options: {
sourceMap: false,
presets: ['es2015']
},
core: {
files: [{ expand: true, cwd: './', src: ['main.js', 'js/**/*.js'], dest: 'dist/'}]
},
var app = app || {};
var app.engine = app.engine || {};
var app.engine.renderer = app.engine.renderer || {};
@brian-lim-42
brian-lim-42 / template.js
Created May 10, 2017 18:41
Mustache Template
class {{clazz}} {
constructor(
{{#params}}
{{> param}}
{{/params}}
) {
{{#attribs}}
{{> attrib}}
{{/attribs}}
@brian-lim-42
brian-lim-42 / type.js
Created May 6, 2017 14:40
JavaScript Type Handling
class Type {
static isBoolean(val) {
return typeof(val) === 'boolean';
}
static isNull(val) {
return val === null;
}