This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Translation\TranslatorInterface; | |
function format(\DateTime $date, TranslatorInterface $translator) | |
{ | |
$diff = date_create()->diff($date); | |
$seconds = $diff->days * 86400 + $diff->h * 3600 + $diff->i * 60 + $diff->s; | |
$format = $translator->transChoice('reldate', $seconds); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2.1 | |
jobs: | |
build: | |
docker: | |
- image: circleci/golang:1.13 | |
steps: | |
- checkout | |
- restore_cache: | |
keys: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.serverless/test | |
└── node_modules | |
├── @mrmlnc | |
├── @nodelib | |
├── @serverless | |
├── @types | |
├── accepts | |
├── agent-base | |
├── ansi | |
├── ansi-align |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": [ | |
["@babel/preset-env", { | |
"modules": false, | |
"useBuiltIns": "entry", | |
"exclude": [ | |
"transform-regenerator" | |
], | |
"targets": { | |
"ie": "11" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
require('dotenv').config() | |
const electron = require('electron') | |
const path = require('path') | |
const { app, BrowserWindow, ipcMain } = electron | |
let mainWindow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var anchoredLink, assetsChanged, browserCompatibleDocumentParser, browserIsntBuggy, browserSupportsPushState, cacheCurrentPage, changePage, constrainPageCacheTo, createDocument, crossOriginLink, currentState, executeScriptTags, extractLink, extractTitleAndBody, extractTrackAssets, fetchHistory, fetchReplacement, handleClick, ignoreClick, initializeTurbolinks, initialized, installClickHandlerLast, intersection, invalidContent, loadedAssets, noTurbolink, nonHtmlLink, nonStandardClick, pageCache, recallScrollPosition, referer, reflectNewUrl, reflectRedirectedUrl, rememberCurrentState, rememberCurrentUrl, rememberInitialPage, removeHash, removeNoscriptTags, requestMethod, requestMethodIsSafe, resetScrollPosition, targetLink, triggerEvent, visit, xhr, _ref, | |
__hasProp = {}.hasOwnProperty, | |
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | |
initialized = false; | |
currentState = null; | |
referer = document.location.hr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:party_parrot: | |
:aw_yeah: | |
:facepalm: | |
:bananadance: | |
:carlton: | |
NewerOlder