Skip to content

Instantly share code, notes, and snippets.

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

beeman beeman

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

Introduction

In this post, we will look at...

name: Build
on:
push:
branches:
- main
jobs:
build:
name: Build
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 09:44
Property order of a Model

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)
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 April 26, 2020 19:43
GraphQL Crud Decorators

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:

Installation:

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

Usage:

  • cd /tmp
  • generate-app.sh

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 January 20, 2020 21:52
Installing Apollo Client in Angular
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) {