These notes are derived from Wireshark for Wireless video series by Jerome Henry and James Garringer distributed by Pearson and accessed on or around 2018-12-10.
Sent by the Pragmatic Programmers, LLC. • 9650 Strickland Rd Ste 103-255• Raleigh NC 27615 - Feb. 21st, 2018
- Rely on your REPL. Clojure (like other LISP languages) intends to provide a "live" development experience where you are actively manipulating and testing the program while you develop the code. To take full advantage of Clojure, it's essential to work in a development environment that allows you to interactively evaluate parts of your code while you develop. We are fortunate to have a variety of tool choices in Clojure that can satisfy those demands.
- Maps, not Objects. Developers coming from object-oriented languages are likely to look for the ability to create classes or objects to hold their data. Clojure takes a more direct and flexible approach to data, primarily storing information attributes in heterogenous maps. Rather than providing class-specific interfaces, Clojure provides a single generic data interface for creating, accessing, and transforming att
A smattering of frequently used commands I use. This will help prevent excessive load on Google's systems.
NOTE: most examples are copied and pasted from the documentation. Attribution belongs to the contributors of the documentation!
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
(ns learn-lein.core | |
(:require [clojure.java.jdbc :as db] | |
[jdbc.pool.c3p0 :as pool])) | |
(def my-db {:subprotocol "postgresql" | |
:subname "//spark3.thedevranch.net:5432/fitbit_heartrate"}) | |
(def my-pool (pool/make-datasource-spec my-db)) | |
(def heartrates (db/query my-pool ["SELECT * FROM activity_journal_minutes LIMIT 10"])) |
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
#!/bin/zsh | |
# Opens a zoom meeting with the name you've given it. | |
# Drop this script in /usr/local/bin/openzoom | |
# Invoke with `openzoom meeting_name` | |
typeset -A meeting | |
# NOTE: set this hashmap with meeting_name and ids of that meeting | |
meeting[meeting_name]=123456789 |
This serves as a repository of ideas that have popped into my head. As I have time, I play around with one.
- Mute Button - Automatically mute television commercials using machine learning and Spark
- NYC Taxi - A cabbie once told me that the length of each trip he takes is much longer than it was before. Use math to prove/disprove it. This data needs a lot of cleanup and profiling before it can be properly analyzed. NYC Taxi Data Cleanup Project
- Heart Rate Anomaly Detector - Automatically detect afib in the fitbit HR
- Picam Fun - Detect movements and objects from images work started here
- Listicle - Organize online articles for reading frontend [backend](https://github.com/brycemcd/email-l
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
library("dplyr") | |
library("tidyr") | |
library("ggplot2") | |
epsilonGreedySanityCheck <- read.csv("~/Desktop/epsilonGreedySanityCheck.txt", header=FALSE) | |
names(epsilonGreedySanityCheck) <- c("testRun", | |
"iterationNum", | |
"epsilon", | |
"nArms", | |
"exploreOrExploit", |
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
#!/bin/bash | |
# NOTE: this is the readable version. Escape quotes and remove new lines prior to submitting | |
curl -X POST -H 'Content-Type: application/vnd.schemaregistry.v1+json' -d '{ | |
"type": "record", | |
"name": "citibike", | |
"fields" : [ | |
{ "name": "executionTime", "type": "string"}, | |
{ "name": "stationBeanList", "type": { | |
"type" : "array", |
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
jq -r '.[0].segments | .[] | select(.type == "move") | .activities[] | {act: .group, startTime: .startTime, endTime: .endTime, duration: .duration, distance_in_meters: .distance} | map(.) | @csv' 20150825.json | less |
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
GET /email_links/email_link/_search | |
{ | |
"size": 0, | |
"aggs": { | |
"decision_count": { | |
"terms": { | |
"field": "accepted" | |
} | |
}, | |
"total_articles_over_time": { |
NewerOlder