Skip to content

Instantly share code, notes, and snippets.

🐝
Buzzin....

beeman beeman

🐝
Buzzin....
View GitHub Profile
View blog.md
published series title
false
{"series"=>nil}
{"title"=>nil}

Introduction

In this post, we will look at...

View build.yml
name: Build
on:
push:
branches:
- main
jobs:
build:
name: Build
View my-schematic.ts
export const myRule = (_: any): Rule => {
return (tree: Tree): Tree => {
const files: any[] = [];
tree.visit((file) => {
files.push(file);
});
console.log("Files count", files.length);
@beeman
beeman / README.md
Created May 3, 2020
Property order of a Model
View README.md

Property order of a Model

  • ID
  • DateTime
  • Enumns (req, optional)
  • Booleans (req, optional)
  • Strings (req, optional)
  • [Strings] (req, optional)
  • Number (req, optional)
  • [Number] (req, optional)
View Dockerfile
FROM node:12-alpine
# FROM node:12 use the Ubuntu-based versions if you have issues building deps on Alpine
# Set some Yarn settings
RUN yarn config set cache-folder ~/.yarn \
&& yarn config set network-timeout 300000 -g \
&& yarn config set prefer-offline true
# Create app directory
WORKDIR /workspace
@beeman
beeman / README.md
Created Apr 26, 2020
GraphQL Crud Decorators
View README.md

For my NestJS API I want to be able to automatically generate my GraphQL CRUD code that I keep on repeating, based on the model that I want to work on.

This is very similar to what for instance nestjsx/crud does for Rest API's.

Another similar project is doug-martin/nestjs-query

The API I'd like to use is the following:

View README.md

Installation:

  • download generate-app.sh
  • Give permissions: chmod +x generate-app.sh

Usage:

  • cd /tmp
  • generate-app.sh <app-name>
View css-grid-admin-dashboard.markdown

CSS Grid Admin Dashboard

A dashboard-style admin interface built using CSS Grid, with a Flexbox fallback for older browsers.

A Pen by Max Böck on CodePen.

License.

@beeman
beeman / graphql.module.ts
Last active Jan 20, 2020
Installing Apollo Client in Angular
View graphql.module.ts
import { NgModule } from '@angular/core';
import { ApolloModule, APOLLO_OPTIONS } from 'apollo-angular';
import { HttpLinkModule, HttpLink } from 'apollo-angular-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { WebSocketLink } from 'apollo-link-ws';
import { ApolloLink, split } from 'apollo-link';
import { getMainDefinition } from 'apollo-utilities';
import { environment } from '../environments/environment';
export function createApollo(httpLink: HttpLink) {
View keybase.md

Keybase proof

I hereby claim:

  • I am beeman on github.
  • I am beeman (https://keybase.io/beeman) on keybase.
  • I have a public key ASAetPGApa0eMeL2187bJfq8fXAU3yiZDVQfAekD6Rh8hQo

To claim this, I am signing this object:

You can’t perform that action at this time.