Skip to content

Instantly share code, notes, and snippets.

View dled's full-sized avatar
🥸

Dylan Ledbetter dled

🥸
View GitHub Profile
@sinemetu1
sinemetu1 / conda_environment.yml
Created June 26, 2018 20:54
Example ansible for creating shippable PySpark environments
name: {{ item.env_name }}
dependencies:
- pip:
- --trusted-host {{ item.trusted_host }}
- --extra-index-url {{ item.pypi_url }}
- my_internal_package
- another_internal_pkg
@sinemetu1
sinemetu1 / .travis.yml
Created June 26, 2018 20:34
Example pyspark .travis.yml
sudo: false
env:
global:
- BOTO_CONFIG=/dev/null
- SPARK_VERSION=2.0.2
matrix:
- TOX_ENV=py27
- TOX_ENV=py3
- TOX_ENV=pep8
@acowley
acowley / EmacsHaskellDemo.md
Last active May 18, 2023 17:31
Emacs Haskell Demo Show Notes

Org Editing in haskell-mode

The video opens with a regular Haskell source file in haskell-mode. We start off by adding headings that break the file into meaningful chunks. A section heading is indicated by an asterisk following Haskell single-line comment characters, i.e. -- *. These are top-level headings, sub-headings are indicated by adding more asterisks.

These section markers are given meaning by

@couchand
couchand / react-d3.js
Created March 5, 2014 16:02
Integrating D3 charts into React.js applications
/** @jsx React.DOM */
// d3 chart function
// note that this is a higher-order function to
// allowing passing in the component properties/state
update = function(props) {
updateCircle = function(me) {
me
.attr("r", function(d) { return d.r; })
.attr("cx", function(d) { return 3 + d.r; })
@gkze
gkze / frost.sh
Created July 16, 2013 18:28
Stephen Frost's crazy one-liner
#!/bin/bash
for host in *; do NAME=`echo $host | cut -f1 -d.`; DOMAIN=`echo $host | cut -f2 -d.`; IPMI="$NAME.ipmi.$DOMAIN.resonatedigital.net"; IP=`host $IPMI | cut -f4 -d' '`; if [ "$IP" != "found:" ]; then cat TEMPLATE.cfg | sed -e "s:NAME:$NAME.ipmi.$DOMAIN:" -e "s:IPADDRESS:$IP:" -e 's:rsnt_iad_linux_physical_hadoop:rsnt_iad_oob_ipmi:' -e 's:generic-rsnt-iad-linux-host:generic-rsnt-iad-host:' | grep -v 'register' > ../../../oob/ipmi/$NAME.ipmi.$DOMAIN.cfg; fi; done