View model_tracking.py
import functools | |
import logging | |
import subprocess | |
import mlflow # type: ignore | |
import mlflow.sklearn # type: ignore | |
logger = logging.getLogger(__name__) |
View aws-list-emr-instancetypes.sh
#!/bin/bash | |
# lists all EMR Clusters along with the associated EC2 Instance Ids | |
# Use this directly on your command shell. It will print the result in the format: | |
# "cluster_id | [$ec2_instance-id]... " | |
# depends on AWS CLI and JQ | |
for cluster in `aws emr list-clusters --active --query 'Clusters[].Id' --output text`; do | |
instances=$(aws emr list-instances --cluster-id ${cluster} --query 'Instances[?Status.State==`RUNNING`].[InstanceGroupId, InstanceType]' | jq -r -c '.[] | @tsv') | |
echo ${cluster} '|' ${instances//$'\n'/ } | |
done |
View aws-enable-command-completition.sh
#!/usr/bin/env bash | |
echo "complete -C aws_completer aws" >> ~/.bash_profile | |
source ~/.bash_profile |
View aws-list-emr-cluster-name.sh
#!/bin/bash | |
# lists all emr cluster names. | |
# depends on AWS CLI and JQ | |
``` | |
for cluster in `aws emr list-clusters --active | jq .Clusters[].Name -r`; do | |
echo $cluster | |
done | |
``` |
View EarthquakeCityMap.java
package module6; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import de.fhpotsdam.unfolding.UnfoldingMap; | |
import de.fhpotsdam.unfolding.data.Feature; | |
import de.fhpotsdam.unfolding.data.GeoJSONReader; | |
import de.fhpotsdam.unfolding.data.PointFeature; |
View SMSListener.java
package com.leonelatencio.mysms; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.provider.Telephony; | |
import android.telephony.SmsManager; | |
import android.telephony.SmsMessage; | |
import android.util.Log; | |
import com.parse.FindCallback; |
NewerOlder