Skip to content

Instantly share code, notes, and snippets.

Avatar
😷

Henrik Bjørnskov henrikbjorn

😷
View GitHub Profile
View index.html
<script src="https://app.relatel.dk/api/public/endpoints/4571999999/embed.js?key=951fbbf8"></script>
<div class="show-timer">
<p>Ring til os på <strong>71 99 99 99</strong></p>
<p>Vi har åbent kl. <strong>9-16</strong></p>
<span>Firmafon-call-status-short-4571999999</span>
</div>
<div class="show-timer-friday">
<p>Ring til os på <strong>71 99 99 99</strong></p>
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: [