Skip to content

Instantly share code, notes, and snippets.

View mamelara's full-sized avatar

Mario Melara mamelara

  • Lawrence Berkeley Laboratory -NERSC
  • 1 Cyclotron Rd, Berkeley, CA
View GitHub Profile
@mamelara
mamelara / architecture.py
Created February 8, 2016 19:11
Code for how to include OS
##############################################################################
# Copyright (c) 2013, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Written by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://scalability-llnl.github.io/spack
# Please also see the LICENSE file for our notice and the LGPL.
import java.util.Arrays;
import java.util.ArrayList;
import edu.princeton.cs.algs4.StdDraw;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.In;
public class FastCollinearPoints {
private int N=0;
private ArrayList<LineSegment> segments = new ArrayList<LineSegment>();
@mamelara
mamelara / Point.java
Created March 1, 2016 19:15
Point code
/******************************************************************************
* Compilation: javac Point.java
* Execution: java Point
* Dependencies: none
*
* An immutable data type for points in the plane.
* For use on Coursera, Algorithms Part I programming assignment.
*
******************************************************************************/
import java.util.Comparator;
@mamelara
mamelara / keybase.md
Created February 28, 2017 20:06
Keybase verification

Keybase proof

I hereby claim:

  • I am mamelara on github.
  • I am mamelara (https://keybase.io/mamelara) on keybase.
  • I have a public key ASDWQ4zAPAPEafw4QKo4brgio2C_BkDQUDSCKLuC46LyFAo

To claim this, I am signing this object:

@mamelara
mamelara / null_dist.py
Created March 30, 2017 17:56
Find the null distribution
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
population = pd.read_csv("https://raw.githubusercontent.com/genomicsclass/dagdata/master/inst/extdata/femaleMiceWeights.csv")
control = population[population["Diet"] == "chow"]
treatment = population[population["Diet"] == "hf"]
obs = treatment["Bodyweight"].mean() - control["Bodyweight"].mean()
def worker(ctx: object, heartbeat_interval_param: int, custom_log_dir: str,
custom_job_log_dir_name: str, pool_name_param: str, dry_run: bool,
slurm_job_id_param: int, worker_type_param: str, cluster_name_param: str,
worker_clone_time_rate_param: float, num_workers_per_node_param: int,
worker_id_param: str, charging_account_param: str,
num_nodes_to_request_param: int, num_cores_to_request_param: int,
constraint_param: str, mem_per_node_to_request_param: str,
mem_per_cpu_to_request_param: str,
qos_param: str, job_time_to_request_param: str) -> int:
essdive-appstack on  issue_123_metacat_logrotate via 🅒 base
➜ ./build.sh metacat 2.12.3-p52
********************************
* Docker Image 'metacat' Build *
********************************
****************************
BUILDING image_version
****************************
commit_count: 53
commit_hash: f82d333