Skip to content

Instantly share code, notes, and snippets.

View dcalacci's full-sized avatar
🦩
wfh baby

Dana Calacci dcalacci

🦩
wfh baby
View GitHub Profile
@dcalacci
dcalacci / fingerprinting_2
Created November 6, 2014 14:59
updated fingerprinting
{
"metadata": {
"name": "",
"signature": "sha256:5ccb6971209a6562e33142efd57b6cdeee622d8d9c4351d28d716db8f872d09e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@dcalacci
dcalacci / fingerprinting
Last active August 29, 2015 14:08
fingerprinting audio files
{
"metadata": {
"name": "",
"signature": "sha256:5ccb6971209a6562e33142efd57b6cdeee622d8d9c4351d28d716db8f872d09e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@dcalacci
dcalacci / example data
Last active August 29, 2015 14:07
example life-as-music data
{
"attention": [
0.0,
0.003456222899936158,
0.0001929150827983854,
0.0,
8.094752325690292e-05,
2.9542891699599606e-07,
2.3634313359679685e-06,
1.1817156679839842e-06,
2012-10-01 61.0
2012-10-02 56.0
2012-10-03 58.0
2012-10-04 50.0
2012-10-05 80.0
2012-10-06 80.0
2012-10-07 37.0
2012-10-08 53.0
2012-10-09 50.0
2012-10-10 42.0
@dcalacci
dcalacci / data.tsv
Last active August 29, 2015 14:05
line chart testing, d3.js
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2 in line 1.
date trips
2012-10-01 61.0
2012-10-02 56.0
2012-10-03 58.0
2012-10-04 50.0
2012-10-05 80.0
2012-10-06 80.0
2012-10-07 37.0
2012-10-08 53.0
2012-10-09 50.0
{
"metadata": {
"name": "",
"signature": "sha256:a83ebbcaecb18131cd4a5bbebd0f3a488a858758b1a8ca38029a6d57c15bc814"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@dcalacci
dcalacci / [pubspeech] - time_series_correlation
Last active August 29, 2015 14:04
time series correlation of sentiment and statement counts
{
"metadata": {
"name": "",
"signature": "sha256:ba1951a9424c0d8948a247be8ff6ed159e05dc19bdaaf59eaacb0f7e7f66ca45"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@dcalacci
dcalacci / pbcopy.el
Last active March 26, 2018 18:10
copy and paste from a mac into emacs, even with TRAMP.
(defun copy-from-osx ()
"Handle copy/paste intelligently on osx."
(let ((pbpaste (purecopy "/usr/bin/pbpaste")))
(if (and (eq system-type 'darwin)
(file-exists-p pbpaste))
(let ((tramp-mode nil)
(default-directory "~"))
(shell-command-to-string pbpaste)))))
(defun paste-to-osx (text &optional push)
### Keybase proof
I hereby claim:
* I am dcalacci on github.
* I am dcalacci (https://keybase.io/dcalacci) on keybase.
* I have a public key whose fingerprint is F3B7 67ED 9A68 876A E2A6 CF0D E5F1 095B 5D82 E4A1
To claim this, I am signing this object:
@dcalacci
dcalacci / evaluationFunction.py
Last active December 6, 2023 16:54
the manual evaluation function I used for hw2 of berkeley's pac-man projects
def betterEvaluationFunction(currentGameState):
"""
Your extreme ghost-hunting, pellet-nabbing, food-gobbling, unstoppable
evaluation function (question 5).
I used the following features in this model:
- distance to the closest active ghost (active ghosts are non-scared ghosts)
- current score in the game
- distance to the closest scared ghost
- number of capsules left