Skip to content

Instantly share code, notes, and snippets.

🐣
klukk klukk

Henrik Bjørnskov henrikbjorn

🐣
klukk klukk
Block or report user

Report or block henrikbjorn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View config.yml
version: 2.1
jobs:
build:
docker:
- image: circleci/golang:1.13
steps:
- checkout
- restore_cache:
keys:
View webpack.config.js
const path = require('path');
const fs = require('fs')
const webpack = require('webpack')
const CloudFormation = require('yaml-cfn')
// Extract the AWS::Serverless::Function Resources as they
// are the entires we need to compile.
const { Resources } = CloudFormation.yamlParse(fs.readFileSync('template.yml'))
const entries = Object.values(Resources)
@henrikbjorn
henrikbjorn / package structure
Created Jul 4, 2019
Serverless not excluding devDependencies
View package structure
.serverless/test
└── node_modules
├── @mrmlnc
├── @nodelib
├── @serverless
├── @types
├── accepts
├── agent-base
├── ansi
├── ansi-align
View .babelrc
{
"presets": [
["@babel/preset-env", {
"modules": false,
"useBuiltIns": "entry",
"exclude": [
"transform-regenerator"
],
"targets": {
"ie": "11"
View erlang.js
var MAX_AGENTS_TO_TEST = 200;
function determineAgents(callDuration, calls, periodLength, answerTarget, serviceLevelTarget) {
if(calls === 0) return(0);
for (var agents = 1; agents <= MAX_AGENTS_TO_TEST; agents++) {
if(serviceLevel(callDuration, calls, periodLength, agents, answerTarget) >= serviceLevelTarget) break;
}
return(agents);
}
View main.js
// @flow
require('dotenv').config()
const electron = require('electron')
const path = require('path')
const { app, BrowserWindow, ipcMain } = electron
let mainWindow
View keybase.md

Keybase proof

I hereby claim:

  • I am henrikbjorn on github.
  • I am hb (https://keybase.io/hb) on keybase.
  • I have a public key ASAtO3zhZUFMsCm6ZDEVELjwCqTDNoNxDjs3Lf3Avtd-BAo

To claim this, I am signing this object:

@henrikbjorn
henrikbjorn / webpack.config.js
Created Jan 8, 2016
WebPack config for bundling js and css files using modulish require.
View webpack.config.js
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry : "./src/index.jsx",
output : {
path : "dist",
filename: "bundle.js"
},
module: {
loaders: [
View app.js
"use strict";
import React from 'react';
React.render(<div>Hello</div>, document.body)
You can’t perform that action at this time.