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
# -*- coding: utf-8 -*- | |
# Copyright 2014 Dan Krause, Python 3 hack 2016 Adam Baxter | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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 | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.photolibraryd.plist | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.cloudphotosd.plist | |
# disable gamed | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist | |
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 | |
#----------------------------------------------------------------- | |
# A simple script to install mediaplayer on a raspberry pi 3 | |
# | |
# See source at https://github.com/PeteManchester/MediaPlayer | |
# | |
# wiki at | |
# https://github.com/PeteManchester/MediaPlayer/wiki/Install-Raspberry-Pi | |
#----------------------------------------------------------------- |
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 | |
######################################## | |
# Project home at | |
# https://github.com/openhome/ohPlayer | |
######################################## | |
echo "Creating ohPlayer directory in /tmp dir" | |
cd /tmp |
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 |
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
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
#!/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
""" | |
~/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
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 |
OlderNewer