Skip to content

Instantly share code, notes, and snippets.

Avatar

Charles Bochet charlesBochet

  • LuckeyHomes
  • Paris
View GitHub Profile
View php-fpm-Dockerfile-71
#
#--------------------------------------------------------------------------
# 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/
View computePi.js
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;
View computePi.js
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;
View computePi.js
function computePi() {
document.getElementById('pi').textContent = (4 * Math.atan(1)).toPrecision(100)
}
View computePi.js
function computePi() {
document.getElementById('pi').textContent = 4 * (Math.atan(1))
}
View computePi.js
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)
}
View computePi.js
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;
View pi.html
<!DOCTYPE html>
<html>
<head>
<title>Pi Calculator</title>
<style>
body {
background: #20262E;
padding: 20px;
font-family: Helvetica;
}
View mix-manifest.json
{
"/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"
}
View webpack.customers.mix.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
You can’t perform that action at this time.