Skip to content

Instantly share code, notes, and snippets.

View charlesBochet's full-sized avatar

Charles Bochet charlesBochet

View GitHub Profile
#
#--------------------------------------------------------------------------
# Image Setup
#--------------------------------------------------------------------------
#
# To edit the 'php-fpm' base Image, visit its repository on Github
# https://github.com/Laradock/php-fpm
#
# To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/php-fpm/tags/
function computePi() {
document.getElementById('pi').innerHTML = (4 * atan(1/5) - atan(1/239)) * 4
}
function atan(x) {
var result = x;
var xSquared = x * x;
var term = x;
var divisor = 1;
function computePi() {
document.getElementById('pi').innerHTML = (4 * atan(1))
}
function atan(x) {
var result = x;
var xSquared = x * x;
var term = x;
var divisor = 1;
function computePi() {
document.getElementById('pi').textContent = (4 * Math.atan(1)).toPrecision(100)
}
function computePi() {
document.getElementById('pi').textContent = 4 * (Math.atan(1))
}
var precision = 300
Big.DP = precision
function computePi() {
var bigOne = new Big(1)
document.getElementById('pi').innerHTML =
((atan(bigOne.div(5)).times(4)).minus(atan(bigOne.div(239)))).times(4)
.toPrecision(precision)
}
function computePi() {
var bigOne = new Big(1)
document.getElementById('pi').innerHTML =
((atan(bigOne.div(5)).times(4)).minus(atan(bigOne.div(239)))).times(4)
.toPrecision(100)
}
function atan(x) {
var preciseX = new Big(x);
var result = preciseX;
<!DOCTYPE html>
<html>
<head>
<title>Pi Calculator</title>
<style>
body {
background: #20262E;
padding: 20px;
font-family: Helvetica;
}
{
"/js/backoffice/backoffice.js": "/js/backoffice/backoffice.js",
"/js/backoffice/vendor.js": "/js/backoffice/vendor.js",
"/js/backoffice/manifest.js": "/js/backoffice/manifest.js",
"/js/customers/vendor.js": "/js/customers/vendor.js",
"/js/customers/customers.js": "/js/customers/customers.js",
"/js/customers/manifest.js": "/js/customers/manifest.js"
}
const mix = require('laravel-mix');
require('laravel-mix-merge-manifest')
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass