{{ message }}

Instantly share code, notes, and snippets.

# Jack Maney jackmaney

Created Apr 10, 2013
calculate t statistics and p-values for coefficients in Linear Model in python, using scikit-learn framework.
View linear_model.py
 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()
Last active May 3, 2021
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

# OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

## Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

Created Nov 28, 2012
Mathematics: What do grad students in math do all day?
View gist:4158578

# Mathematics: What do grad students in math do all day?

by Yasha Berchenko-Kogan

A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.

The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.

What can you say?

Last active Apr 24, 2021
It's a résumé, as a readable and compilable C source file. Since Hacker News got here, this has been updated to be most of my actual résumé. This isn't a serious document, just a concept to annoy people who talk about recruiting and the formats they accept résumés in. It's also relatively representative of my coding style.
View _.md

Since this is on Hacker News and reddit...

• No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is a good bit crazier.
• I apologize for the use of `_t` in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
• Since people kept complaining, I've fixed the assignments of string literals to non-const `char *`s.
• My use of `type * name`, however, is entirely intentional.
• If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at le
Created Sep 14, 2012
put on glasses unicode
View putonglasses.txt
 •_•) ( •_•)>⌐■-■ (⌐■_■)
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the `.git/config` file. It looks like this:

``````[remote "origin"]
url = git@github.com:joyent/node.git
``````

Now add the line `fetch = +refs/pull/*/head:refs/remotes/origin/pr/*` to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

Created Jul 25, 2012
Compiling and Installing Node v0.8.4 on CentOS 5.x
View compilingNode0.8.4onCentOS5.md

# Compiling/Installing Node 0.8.4 (and Python 2.6, required by Node) on CentOS 5

Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)

`\$ sudo yum update`

Install the EPEL Repo:

Created Mar 8, 2012 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags
View meta-tags.md

## Basic HTML Meta Tags

```<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>