Skip to content

Instantly share code, notes, and snippets.

View jacobedawson's full-sized avatar
🎯
JS Ecosystem Explorer

Jacob E. Dawson jacobedawson

🎯
JS Ecosystem Explorer
View GitHub Profile
@jacobedawson
jacobedawson / index.html
Last active May 17, 2016 19:00 — forked from anonymous/index.html
JS - indexOf - JS Bin// source http://jsbin.com/puqago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@jacobedawson
jacobedawson / cloudSettings
Created January 28, 2017 09:41
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-01-28T09:41:50.064Z"}
@jacobedawson
jacobedawson / cloudSettings
Last active December 8, 2017 23:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-08T23:39:17.909Z","extensionVersion":"v2.8.6"}
@jacobedawson
jacobedawson / package.json
Last active October 3, 2017 10:54
Reddreader - package.json
{
"name": "reddreader",
"version": "1.0.0",
"license": "MIT",
"author": "Jacob E. Dawson",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "node server.js",
"preserve": "tsc -p server",
@jacobedawson
jacobedawson / gulp-example.js
Created September 22, 2017 18:54
Example Gulp File
// import requirements
const gulp = require('gulp');
const sass = require('gulp-sass');
const autoprefixer = require('gulp-autoprefixer');
const minifycss = require('gulp-uglifycss'); // Minifies CSS files.
const combineMQ = require('gulp-combine-mq');
const sourceMaps = require('gulp-sourcemaps');
const babel = require('gulp-babel');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
@jacobedawson
jacobedawson / mytheme.scss
Last active November 16, 2017 11:00
Angular Material Example - Custom Theme
@import '~@angular/material/theming';
// always include only once per project
@include mat-core();
$mytheme-primary: mat-palette($mat-green);
$mytheme-accent : mat-palette($mat-green, A100, A400, A700);
$mytheme-warn : mat-palette($mat-red);
$mytheme-theme: mat-light-theme($mytheme-primary, $mytheme-accent, $mytheme-warn);
@jacobedawson
jacobedawson / styles.scss
Created November 16, 2017 11:03
Angular Material Example Main Styles
/* You can add global styles to this file, and also import other style files */
@import "~@angular/material/prebuilt-themes/indigo-pink.css"; // import a base theme
// import your custom theme
@import './sass/mytheme.scss';
// include your custom theme with a class
.mytheme {
@include angular-material-theme($mytheme);
}
// example other global styles
body {
@jacobedawson
jacobedawson / angular-cli.json
Created November 16, 2017 11:06
Angular Material Example Angular CLI
"styles": [
"../node_modules/open-sans-fontface/open-sans.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
// THIS
"./sass/mytheme.scss",
"styles.scss"
],
@jacobedawson
jacobedawson / cloudSettings
Last active April 30, 2020 05:04
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-30T05:04:28.824Z","extensionVersion":"v3.4.3"}
body{background:#62374e}p{width:50px;height:50px;background:#fdc57b;position:absolute}#a,#b{top:34px}#c,#d{bottom:34px}#a,#c{left:50px}#b,#d{right:50px}