Two awsome things were released yesterday :
- bittorrent sync aka btsync
- backupsy
Compare this to the pricing of : dropbox pro
Two awsome things were released yesterday :
Compare this to the pricing of : dropbox pro
| import re, hashlib, uuid, json, random, os, urllib2, os.path, time, sys, SimpleHTTPServer, SocketServer, string, console, webbrowser, shutil, zipfile | |
| class SmarterHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| server_version = 'SimpleHTTP/0.6' | |
| file_name = '' | |
| def do_GET(self): | |
| if self.path.startswith('/transfer'): | |
| self.get_transfer() | |
| else: | |
| f = self.send_head() |
| """ | |
| (C) August 2013, Mathieu Blondel | |
| # License: BSD 3 clause | |
| This is a Numba-based reimplementation of the block coordinate descent solver | |
| (without line search) described in the paper: | |
| Block Coordinate Descent Algorithms for Large-scale Sparse Multiclass | |
| Classification. Mathieu Blondel, Kazuhiro Seki, and Kuniaki Uehara. | |
| Machine Learning, May 2013. |
| from numpy.random import rand | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| # 2 columns produces an array of 2 matplotlib.axes.AxesSubplot objects | |
| df2 = pd.DataFrame(rand(10,2), columns=['Col1', 'Col2'] ) | |
| df2['X'] = pd.Series(['A','B','A','B','A','B','A','B','A','B']) | |
| #1 column produces a single matplotlib.axes.AxesSubplot object | |
| df1 = pd.DataFrame(rand(10), columns=['Col1'] ) |
| import multiprocessing | |
| import pandas as pd | |
| import numpy as np | |
| def _apply_df(args): | |
| df, func, kwargs = args | |
| return df.apply(func, **kwargs) | |
| def apply_by_multiprocessing(df, func, **kwargs): | |
| workers = kwargs.pop('workers') |
| # -*- coding: utf-8 -*- | |
| # Check and change redirection status of a telefon number via the | |
| # website of my telephone network service provider TNG.de | |
| # Python Script for iOS Pythonista App (Vers. 1.4) | |
| from bs4 import BeautifulSoup | |
| import requests, console, re, sys, time, exceptions | |
| try: |
| all: example.ipynb example.html | |
| example.md: example.Rmd | |
| ./knit | |
| example.ipynb: example.md | |
| notedown example.md | sed '/%%r/d' > example.ipynb | |
| example.html: example.Rmd | |
| R -e "knitr::knit2html('example.Rmd')" |
| -- Replace "[Pushover_user_key]" on line #42 with your Pushover accout's user | |
| -- key. (You can find it here: <https://pushover.net/dashboard>) | |
| -- You should probably also replace the app token provided on line #41 with one | |
| -- of your own. (They can be generated here: <https://pushover.net/apps/build>) | |
| on URL_encode(a) | |
| set safe_characters to "abcdefghijklmnopqrstuvwxyz0123456789~-_." | |
| set hex to {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"} | |
| set a_encoded to "" |
| import io | |
| import os | |
| import sys | |
| import types | |
| from IPython.nbformat import current | |
| from IPython.core.interactiveshell import InteractiveShell | |
| def find_notebook(fullname, path=None): |