Skip to content

Instantly share code, notes, and snippets.

View beeman's full-sized avatar
🐝
Buzzin....

beeman

🐝
Buzzin....
View GitHub Profile
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
[
{
"name": "angular-seed",
"description": "Main Angular Seed with Bootstrap, FontAwesome and NGRX",
"url": "https://angular-seed.stackblitz.io",
"editUrl": "https://stackblitz.com/edit/angular-seed",
"forkUrl": "https://stackblitz.com/fork/angular-seed",
"features": [
"Angular 5.2.1",
"@ngrx/store 4.1.1",
@beeman
beeman / Shortcuts.json
Created February 3, 2018 22:00
~/Library/Application\ Support/Spectacle/Shortcuts.json
[
{
"shortcut_key_binding" : "alt+shift+cmd+z",
"shortcut_name" : "RedoLastMove"
},
{
"shortcut_key_binding" : null,
"shortcut_name" : "MakeSmaller"
},
{
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
declarations: [
________
╱ ╲
╱ ╲
________╱ ╲
╱ ╲ ╱
╱ ╲ ╱
╱ ╲________╱
╲ ╱ ╲
╲ ╱ ╲
╲________╱ ╲
_____
╱ ╲
_____╱ ╲
╱ ╲ ╱ ╭──╮ ╭──╮ ╷ ╭─╮╭─╮ ╭── ╭─╮ ╷ ╭──╮
╱ ╲_____╱ │ │ │ │ │ ││ │ │ │ │ │ │ │
╲ ╱ ╲ │ │ │ │ │ ╰╯ │ ├─ │ │ │ ├──┤
╲_____╱ ╲ ╰──╯ ╰──╯ ╰── ╵ ╵ ╰── ╵ ╰─╯ ╵ ╵
╲ ╱
╲_____╱
@beeman
beeman / theme.component.ts
Created August 10, 2017 17:31
scratchpad: ngx-bootswatch
import { Component, ChangeDetectionStrategy, Input } from '@angular/core'
@Component({
selector: 'theme',
template: `
<div class="btn-group"
[class.show]="themeDropOpen">
<button type="button"
class="btn btn-outline-primary dropdown-toggle"
data-toggle="dropdown"
@beeman
beeman / Dockerfile
Last active June 21, 2017 11:27
Install Colmena CMS + beeman/colmena-todo on dply.co https://dply.co/b/GnkpGivd
FROM ubuntu:16.04
RUN apt-get update && apt-get install curl -y
RUN curl "https://gist.githubusercontent.com/beeman/1570e49c70ded6ed2e80d4c7514f6e66/raw" | sh
@beeman
beeman / dploy-colmena.sh
Last active August 20, 2017 18:52
Install Colmena on dply.co https://dply.co/b/q6aJuU0e
#!/bin/sh
# Create and activate swap
dd if=/dev/zero of=/swapfile bs=256M count=4
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
# Activate swapfile on boot
echo "" >> /etc/fstab
echo "/swapfile none swap sw 0 0" >> /etc/fstab