This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| from sklearn import linear_model | |
| from scipy import stats | |
| import numpy as np | |
| class LinearRegression(linear_model.LinearRegression): | |
| """ | |
| LinearRegression class after sklearn's, but calculate t-statistics | |
| and p-values for model coefficients (betas). | |
| Additional attributes available after .fit() |
| Original text here: https://whydavewhy.com/2013/08/16/loyalty-and-layoffs/ |
| def urlses(cl: ClassLoader): Array[java.net.URL] = cl match { | |
| case null => Array() | |
| case u: java.net.URLClassLoader => u.getURLs() ++ urlses(cl.getParent) | |
| case _ => urlses(cl.getParent) | |
| } | |
| val urls = urlses(getClass.getClassLoader) | |
| println(urls.filterNot(_.toString.contains("ivy")).mkString("\n") |
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| #! /usr/bin/env python | |
| # vim: set fileencoding=utf-8: | |
| """ Process URL for intersphinx targets and emit html or text """ | |
| def validuri(string): | |
| return string | |
| from sphinx.ext.intersphinx import read_inventory_v2 | |
| from posixpath import join | |
| import pprint |
| using UnityEngine; | |
| [System.Serializable] | |
| public class Edge | |
| { | |
| public Edge() | |
| { | |
| } | |
| public Edge(Node node, int cost) | |
| { |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |