Skip to content

Instantly share code, notes, and snippets.

View Kalimaha's full-sized avatar
🌒
not because they are easy, but because they are hard

Guido Barbaglia Kalimaha

🌒
not because they are easy, but because they are hard
View GitHub Profile
package it.unimarconi;
import it.unimarconi.generatori.GeneratoreIntervallo;
import it.unimarconi.system.SingleCPU;
import java.util.ArrayList;
public class RunReplicati {
/* Variabili per la simulazione. */
29.711560623280853 ARRIVAL
30.611812901426365 CPU1
31.526971050389378 IO
34.010459092908015 CPU1
36.24733234998288 ARRIVAL
36.475787564569735 IO
38.18828377607328 CPU1
40.01621363820935 IO
44.26891574669327 CPU1
45.22544111203695 CPU2
package it.unimarconi.generatori;
public class Generatore {
private final int a = 1220703125;
private final long m = (long)Math.pow(2, 28);
private long x0;
<html>
<head>
<script src="libs/jquery.js"></script>
<script src="libs/highcharts.js"></script>
<script src="libs/exporting.js"></script>
<script>
function plot() {
$(function () {
$('#container').highcharts({
chart: {
<html>
<head>
<script src="libs/jquery.js"></script>
<script src="libs/highcharts.js"></script>
<script src="libs/exporting.js"></script>
<script>
function plot() {
$(function () {
$('#container').highcharts({
chart: {
settings = {
# To be used by Flask: DEVELOPMENT ONLY
"debug": True,
# Flask host: DEVELOPMENT ONLY
"host": "168.202.28.57",
# Flask port: DEVELOPMENT ONLY
"port": 5555,
{
"$schema":"http://json-schema.org/draft-04/schema#",
"description":"D3S Objects Schema",
"definitions":{
"OJAxis":{
"type":"object",
"properties":{
"axisName":{
"$ref":"#/definitions/AxisType"
},
@Kalimaha
Kalimaha / TradeMatrixExample.html
Created March 24, 2015 09:55
FENIX API Example for FAOSTAT Trade Matrix Data
<html>
<head>
<script type='text/javascript' src='https://code.jquery.com/jquery-2.1.3.min.js'></script>
<script type='text/javascript'>
function test() {
var payload = {
"datasource": "faostatdb",
"domainCode": "TM",
"lang": "E",
"list1Codes": ["'2'"],
@Kalimaha
Kalimaha / JSONEditorTest.html
Created March 24, 2015 11:05
JSON Editor Test with D3S MDSD
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Basic JSON Editor Example</title>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel='stylesheet'>
<link href='http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet'>
<script type='text/javascript' src='https://code.jquery.com/jquery-2.1.3.min.js'></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
define(['jquery',
'handlebars',
'text!fenix_ui_metadata_viewer/html/templates.html',
'i18n!fenix_ui_metadata_viewer/nls/translate',
'jsonEditor',
'sweetAlert'], function ($, Handlebars, templates, translate) {
'use strict';
function FUIMDV() {