Skip to content

Instantly share code, notes, and snippets.

View russelljjarvis's full-sized avatar
🔨
code carpentry

Russell Jarvis russelljjarvis

🔨
code carpentry
View GitHub Profile
@russelljjarvis
russelljjarvis / zscore.py
Created July 21, 2020 04:48 — forked from mnguyenngo/zscore.py
Code to calculate and plot the z-score
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as scs
def z_val(sig_level=0.05, two_tailed=True):
"""Returns the z value for a given significance level"""
z_dist = scs.norm()
if two_tailed:
sig_level = sig_level/2
area = 1 - sig_level
@russelljjarvis
russelljjarvis / pythontojulia.md
Created April 15, 2020 01:43 — forked from svaksha/pythontojulia.md
Python to Julia Quick translation / conversion reference Guide

A quick and dirty syntax translation / conversion reference guide to ease the transition between Python and Julia. This is not meant as a reference to the language. For that you should read the manual.

Some important differences

  • Arrays in Julia are indexed starting from 1.
  • In Julia classes (i.e. types) don't own methods. Methods are implementations of generic functions and are invoked in a "static style", i.e. instead of Python's str1.rstrip(), we will have rstrip( str1 ), instead of file1.close(), close( file1 ).

Some important similarities.

@russelljjarvis
russelljjarvis / Fedora 21.md
Created September 1, 2016 02:00 — forked from jamespamplin/Fedora 21.md
Enable Mac Book Pro Wifi on Fedora 21

Click here for Fedora 24

The current kernel of Fedora 21 doesn't support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
@russelljjarvis
russelljjarvis / ShebangList.md
Created February 27, 2016 00:18 — forked from mitsu-ksgr/ShebangList.md
【Markdown】shebang list

Shebang List

Mac OS X 10.9.x (Mavericks)

Shell
#!/usr/bin/env sh

Python