Skip to content

Instantly share code, notes, and snippets.

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

beeman beeman

🐝
Buzzin....
View GitHub Profile
@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) {
@beeman
beeman / keybase.md
Created September 10, 2019 15:57
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:

@beeman
beeman / ubuntu.ks
Created July 22, 2019 04:43 — forked from funzoneq/ubuntu.ks
Ubuntu kickstart file
#Generated by Kickstart Configurator
#platform=x86
# Fetch content from here
url –url http://nl.archive.ubuntu.com/ubuntu/
#System language
lang en_US.UTF-8
#Language modules to install
{
"basics": {
"name": "Bram Borggreve",
"label": "Senior Software Engineer - Founder at Code Your Future Colombia - Co-Founder at Trilon - StackBlitz Team",
"picture": "",
"email": "beeman@beeman.nl",
"phone": "+15409233626",
"website": "https://colmena.io",
"summary": "I am Bram Borggreve, a Dutch software engineer. At the age of 35 I sold my house, gave away my stuff and started living abroad. I have since spent time in more than 15 countries!",
"location": {
@beeman
beeman / selective-bootstrap.scss
Created January 10, 2019 03:36
This is a way to selectively use features from bootstrap, for instance to add some more classes to an app that uses Angular Material
// ******************************************************************* //
// *** Make sure you install the package 'bootstrap-scss' from npm *** //
// ******************************************************************* //
// ******************************************************* //
// *** Functions and variables need to be loaded first *** //
// ******************************************************* //
@import "~bootstrap-scss/functions";
@import "~bootstrap-scss/variables";
@beeman
beeman / README.md
Last active December 15, 2018 23:46
Getting into mentoring

1. Find a person you can mentor

Shout out on Twitter that you want to mentor and ask for retweets. Alternatively, get in touch with a person that is already mentoring students as they generally know more people that are interested.

2. Schedule an introduction call

Get to know each other during introduction call. You can talk about what the student knows, and what goals they have that you can help them with.

3. Determine what the mentoring could look like

scalar JSON
# input type
input PublishInput {
type: String!
scope: String
payload: JSON
}
input SubscribeInput {
type: String
@beeman
beeman / Dockerfile
Created August 22, 2018 01:15
Docker configuration for Angular Universal built apps
FROM node:10-alpine
RUN mkdir -p /app/dist
WORKDIR /app
COPY ./dist /app/dist
EXPOSE 8080
CMD [ "node", "dist/server" ]

Angular Console

  • Once a project running ng serve (for instance), the Finder/IDE's should always be available.
  • Add option to Open in Terminal (iTerm2, Terminal, Konsole, etc.).
  • Inline terminal for quick commands like a git commit.
  • Use a GraphQL Subscription for command output.
  • Allow running multiple commands at the same time.
/*! fpo.js
v6.1.6 (c) 2017 Kyle Simpson
MIT License: http://getify.mit-license.org
*/
/* Forked by @beeman for https://github.com/beeman/deno-examples */
export function FPO() {
var publicAPI: any = {
identity: curryMultiple({ fn: identity, n: 1 }),
constant: curryMultiple({ fn: constant, n: 1 }),
pick: curryMultiple({ fn: pick, n: 2 }),