Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Mohamed Attia muattiyah

I may be slow to respond.
View GitHub Profile
gfixler / OpenCourseOnline
Created Feb 11, 2013
OpenCourseOnline youtube channel links, prettied up. These were so hard to find, and so inconsistently named.
View OpenCourseOnline
Probabilistic Graphical Models with Professor Daphne Koller - Stanford University {{{1
01.01 - Welcome |
01.02 - Overview and Motivation |
01.03 - Distributions |
01.04 - Factors |
02.01 - Semantics & Factorization |
02.02 - Reasoning Patterns |
02.03 - Flow of Probabilistic Influence |
JeffreyWay / gist:5695346
Created Jun 2, 2013
And we wonder why we get overwhelmed.
View gist:5695346
So you want to accept payments online with PHP?
- Well, you probably don't want to handle that process manually. Too dangerous and risky.
- So learn the Stripe API. Works great!
- But you'll still need to setup SSL. So go learn how to do that.
- Stripe provides a PHP package, so download that through Composer. If you're not familiar with Composer, you'll need to learn that too.
- If you want the most flexibility, you'll want to manually create the payment form.
- So you'll need to send an AJAX request with a special token to Stripe's API. jQuery makes this easy, so go learn jQuery.
- Once the payment completes, you'll likely want to send the buyer a "Purchased" email, so learn how to send email.
- But don't make the user wait for the email to send. That takes too long. Add that to a background job.
View gist:10130454
#!/usr/bin/env python
# Quick and dirty demonstration of CVE-2014-0160 by
# Jared Stafford (
# Modified so that it finds cookies
import sys
import struct
import socket
import time
import select
kraft001 / solarized.bash
Created Jun 8, 2012
solarized Gnome Terminal + Tmux + Vim
View solarized.bash
# store all solarized files in one place
mkdir ~/.solarized
cd ~/.solarized
git clone
eval `dircolors ~/.solarized/dircolors-solarized/dircolors.256dark`
ln -s ~/.solarized/dircolors-solarized/dircolors.256dark ~/.dir_colors
git clone
arvearve / gist:4158578
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?

bishboria /
Last active Sep 22, 2022
Springer made a bunch of books available for free, these were the direct links
chrisdone /
Last active Sep 22, 2022
Typing Haskell in Haskell

Typing Haskell in Haskell


Pacific Software Research Center

Department of Computer Science and Engineering

Oregon Graduate Institute of Science and Technology

View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name:

nikcub /
Created Oct 4, 2012
Facebook PHP Source Code from August 2007