Skip to content

Instantly share code, notes, and snippets.

@OrkoHunter
OrkoHunter / dipy_tests_warning.txt
Last active February 4, 2016 11:43
Warnings generated in testing dipy
dipy.core.tests.test_geometry.test_sphere_cart((array(0.5), array(0.4999999999999999), array(0.7071067811865476)), array([ 0.5 , 0.5 , 0.70710678])) ... ok
/home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/core/geometry.py:128: RuntimeWarning: invalid value encountered in double_scalars
theta = np.arccos(z / r)
---
dipy.io.tests.test_io_gradients.test_read_bvals_bvecs ... ok
Doctest: dipy.reconst.benchmarks.bench_squash.old_squash ... /home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/reconst/benchmarks/bench_squash.py:75: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
mask = arr != np.array(None)
ok
@OrkoHunter
OrkoHunter / stingray_test.md
Created March 2, 2016 08:04
Test report on March 2nd, 2016.
➜  stingray git:(move_tests) nosetests
................................................/home/hunter/GSoC/current/stingray/stingray/utils.py:24: UserWarning: SIMON says: Probability of no signal too miniscule to calculate.
  warnings.warn("SIMON says: {0}".format(message), **kwargs)
.....FF........FF...FFFFFF..F.F......
======================================================================
FAIL: test_powerspectrum.TestPowerspectrum.test_dc_component
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
@OrkoHunter
OrkoHunter / prototype.py
Last active March 21, 2016 09:50
Prototype functions for my GSoC 16 project
from __future__ import division
import numpy as np
import stingray.lightcurve as lightcurve
def cross_covariance(lc1, lc2):
"""
Compute the cross covariance of two lightcurves.
Parameters
{"ezcf": {"file_type": "zip", "nonbuiltins": "xmltodict green yaml unittest2 configobj", "version": "0.2.1", "source": "pypi", "builtins": "imp unittest os xml inspect json setuptools codecs sys"}, "paramiko": {"file_type": "tar", "nonbuiltins": "sspicon tests cryptography test_ssh_gss test_gssapi _thread socketserver test_client sspi builtins gssapi pyasn1 test_kex_gss", "version": "2.1.1", "source": "pypi", "builtins": "collections ctypes sys StringIO termios tty UserDict thread zlib errno time functools struct base64 io shlex os warnings binascii stat setuptools platform socket getpass threading signal weakref grp select unittest logging traceback fnmatch SocketServer tarfile __future__ tempfile distutils pwd fcntl hmac subprocess cStringIO __builtin__ atexit array optparse hashlib datetime"}, "gmvault": {"file_type": "tar", "nonbuiltins": "chardet gmv logbook imapclient", "version": "1.9.1", "source": "pypi", "builtins": "zlib unittest StringIO shutil gzip webbrowser token fnmatch contextlib traceback loc
{"feed": [{"year": 2017, "content": [{"content": [{"link": "https://medium.com/p/aa2f9d5e3d5c", "tags": ["tech", "programming", "web-development", "python"], "title": "sudo start orkohunter.net"}, {"link": "https://medium.com/p/4403b18e171d", "tags": ["open-source", "education", "programming", "technology"], "title": "Kharagpur Winter of Code Statistics"}, {"link": "https://medium.com/p/f0afd146d2e", "tags": ["linux", "ssh"], "title": "SSH to a remote server from KGP network"}, {"link": "https://medium.com/p/e9769e7c8824", "tags": ["github", "getting-started", "git"], "title": "Quick guide to git and github (Part 1)"}, {"link": "https://medium.com/p/5137ebf42d36", "tags": ["poetry", "poem", "fiction"], "title": "\u0906\u0902\u0938\u0941\u0913\u0902 \u0915\u0947 \u092c\u093f\u0902\u092c \u0938\u0947 \u091b\u0932\u0915\u0924\u0940 \u0939\u0941\u0908 \u0926\u0941\u0928\u093f\u092f\u093e, \u0926\u0947\u0916\u0940 \u0925\u0940 \u092e\u0948\u0902\u0928\u0947 \u090f\u0915 \u092c\u093e\u0930"}, {"link": "https://medi
@OrkoHunter
OrkoHunter / app.py
Created February 24, 2017 00:06
Keep Heroku server
# -*- coding: utf-8 -*-
import json
import os
from flask import Flask, request, g, session, redirect, url_for, Response
from flask import render_template_string, render_template
import requests
from sqlalchemy import create_engine, Column, Integer, String, Text
from sqlalchemy.orm import scoped_session, sessionmaker
@OrkoHunter
OrkoHunter / gist:b7eeea28683eb50f9ca569440457fc9a
Created March 16, 2017 22:23
Node + socket project idea
Create a node app which could execute commands from browser and then display the results.
@OrkoHunter
OrkoHunter / 95proxies
Created March 20, 2017 11:40
System Proxy Files (Need sudo privileges)
Acquire::http::proxy "http://10.3.100.207:8080/";
Acquire::ftp::proxy "ftp://10.3.100.207:8080/";
Acquire::https::proxy "http://10.3.100.207:8080/";
@OrkoHunter
OrkoHunter / .pep8speaks.yml
Created March 22, 2017 19:44
PEP8 Speaks configuration for skimage
# File : .pep8speaks.yml
scanner:
diff_only: True # Errors caused by only the patch are shown, not the whole file
pycodestyle:
max-line-length: 80 # Default is 79 in PEP8
ignore: # Errors and warnings to ignore
- W391
- E203
@OrkoHunter
OrkoHunter / packages.json
Created March 23, 2017 15:04
A valid one
This file has been truncated, but you can view the full file.
{
"backslash": {
"source": "pypi",
"version": "2.25.1",
"file_type": "tar",
"builtins": "os cStringIO setuptools linecache pipes copy json contextlib functools socket random threading time hashlib shlex __future__ gzip itertools sys collections __builtin__ webbrowser io",
"nonbuiltins": "munch requests slash git logbook sentinels urlobject simplejson builtins"
},
"django-andablog": {
"source": "pypi",