Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

José Vieira Neto NetoDevel

🏠
Working from home
View GitHub Profile
View Passo 4.5
/**
* Cálculo de B(x,t)
*/
System.out.println("\n***************************************************");
System.out.println("******************PASSO 4.5 Cálculo de B(x,t)******");
System.out.println("***************************************************\n");
BigDecimal Bxt = BigDecimal.ZERO;
BigDecimal x = BigDecimal.ZERO;
BigDecimal t = new BigDecimal("365").setScale(30, RoundingMode.HALF_EVEN);
View gist:3121473af5c1f5ebf261
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 8.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal totalDeMassaNaFonte = BigDecimal.ZERO; //KG
totalDeMassaNaFonte = cti.multiply(pb).multiply(xSource).multiply(ySource).multiply(Lw.multiply(new BigDecimal("100"))).multiply(new BigDecimal(Math.pow(10d, -3d)));
System.out.println("Valor totalDeMassaNaFonte: " + nb.format(totalDeMassaNaFonte));
View passo7
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 7.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal Mass = BigDecimal.ZERO;
BigDecimal C = valoresCwxt.get(valoresCwxt.size() - 1); // é o ultimo valor de Cwxt
BigDecimal xSource = LENGTH_OF_SOURCE.multiply(new BigDecimal("100"));
View gist:3c9e05bf892f90fe2be0
System.out.println("");
System.out.println("================================================");
System.out.println("================ PASSO 8.0 =====================");
System.out.println("================================================");
System.out.println("");
BigDecimal totalDeMassaNaFonte = BigDecimal.ZERO; //KG
totalDeMassaNaFonte = cti.multiply(pb).multiply(xSource).multiply(ySource).multiply(Lw.multiply(new BigDecimal("100"))).multiply(new BigDecimal(Math.pow(10d, -3d))).setScale(30, RoundingMode.HALF_EVEN);
System.out.println("Valor totalDeMassaNaFonte: " + nb.format(totalDeMassaNaFonte));
View Java Vadose Zone
package br.com.sed.seris.domain.simulation.concentration;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
View Vadose Zone 1.1
package br.com.sed.seris.domain.simulation.concentration;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.HashMap;
View ionic + phonegap push
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is found in controllers.js
angular.module('starter', ['ionic','ionic.service.core', 'starter.controllers'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
View error ionic
Error: [$injector:modulerr] Failed to instantiate module PushNotification due to:
Error: [$injector:nomod] Module 'PushNotification' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.3/$injector/nomod?p0=PushNotification
View Box Python
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'precise32'
config.vm.network :forwarded_port, guest: 80, host: 8080
config.ssh.insert_key = false
end
View rspec
describe List do
before(:each) do
@list = List.new
end
it "should be valid" do
@list.should be_valid
end
end
You can’t perform that action at this time.