Skip to content

Instantly share code, notes, and snippets.

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

beeman beeman

🐝
Buzzin....
View GitHub Profile
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
@beeman
beeman / dploy-colmena-cms.sh
Last active February 19, 2017 14:04
Install Colmena CMS on dply.co https://dply.co/b/JxCG6lY7
#!/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
Suggestion A
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ _ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Suggestion B
root@test:~# git clone https://github.com/angular/angular-cli.git
Cloning into 'angular-cli'...
remote: Counting objects: 12248, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 12248 (delta 2), reused 0 (delta 0), pack-reused 12227
Receiving objects: 100% (12248/12248), 3.00 MiB | 0 bytes/s, done.
Resolving deltas: 100% (6249/6249), done.
Checking connectivity... done.
root@test:~# cd angular-cli/
root@test:~/angular-cli# npm i