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 | |
# From https://docs.docker.com/compose/gettingstarted/ | |
cd /tmp | |
# Create a directory for the project | |
mkdir composetest | |
cd composetest |
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 | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL https://gist.githubusercontent.com/gwin-zegal/d9b4a1ec926bd6654aaa1e3670de86e1/raw/python_setup_raspbian.sh | sh | |
sudo apt-get -y update | |
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev | |
PY_VERSION='3.7.2' |
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 | |
# ProtocolBuffers is an open source project supporting Google's | |
# ProtocolBuffer's platform-neutral and language-neutral interprocess-communication (IPC) and serialization framework. It has an Interface Definition Language (IDL) that is used to describe the wire- and file formats; this IDL is then pre-compiled into source code for the target languages (Python, Java and C++ included), which are then used in the applications. | |
cd /tmp | |
wget https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2 | |
tar xf protobuf-2.5.0.tar.bz2 |
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
# /opt/mediaplayer/latest/app.properties | |
airplay_audio_start_delay=false | |
airplay_enabled=false | |
airplay_latency_enabled=true | |
airplay_master_volume_enabled=false | |
airplay_port=5002 | |
java_sound_software_mixer_enabled=false | |
java_soundcard_suffix=[PLUGHW\:0,0]--PRIMARY SOUND DRIVER | |
log_console_level=off | |
log_file_level=error |
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
import sys | |
from os.path import abspath, dirname, join as pjoin | |
import logging | |
import warnings | |
from functools import partial | |
from enum import IntEnum | |
from ctypes import (c_int, c_double, c_void_p, Structure, byref) | |
import numpy as np | |
import xarray as xr |
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/Application Support/Sublime Text 3/Packages/SublimeREPL/ipy_repl.py | |
""" | |
import os | |
import sys | |
import json | |
import socket | |
import threading | |
import IPython |
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/sh | |
# File: indent.sh | |
# Opens a set of files in emacs and executes the emacs-format-function. | |
# | |
# This one is based on: | |
# http://www.cslab.pepperdine.edu/warford/BatchIndentationEmacs.html | |
emacsscript=/tmp/.emacs-indent | |
cat > ${emacsscript} << EOF |
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
class PyDataSet(object): | |
import pandas as pd | |
""" | |
Retrieves R Dataset | |
""" | |
db = pd.read_csv("http://vincentarelbundock.github.com/Rdatasets/datasets.csv") | |
db.set_index('Item', drop=True, inplace=True) | |
@classmethod | |
def search(cls, name): |
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
/* | |
Basis css inspired from | |
http://help.plot.ly/documentation/all_static/css/ipython-notebook-custom.css | |
http://www.labri.fr/perso/nrougier/from-python-to-numpy/index.html | |
Color scale: | |
https://github.com/d3/d3-scale/blob/master/README.md#scaleOrdinal | |
https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md |
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
#!/usr/bin/python | |
# | |
# From https://github.com/robperc/SafariBookmarkEditor | |
# | |
# Revision | |
# 23/10/2017 - ported to Python 3, PEP8 fixes | |
# | |
""" | |
Python module for easily adding, removing, and moving positions of Safari |