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
# | |
#-------------------------------------------------------------------------- | |
# 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/ |
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
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; |
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
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; |
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
function computePi() { | |
document.getElementById('pi').textContent = (4 * Math.atan(1)).toPrecision(100) | |
} |
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
function computePi() { | |
document.getElementById('pi').textContent = 4 * (Math.atan(1)) | |
} |
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 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) | |
} |
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
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; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Pi Calculator</title> | |
<style> | |
body { | |
background: #20262E; | |
padding: 20px; | |
font-family: Helvetica; | |
} |
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
{ | |
"/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" | |
} |
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 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 |
NewerOlder