Skip to content

Instantly share code, notes, and snippets.

View alexpatel's full-sized avatar

Alex Patel alexpatel

View GitHub Profile
@chihuahua
chihuahua / mean.c
Last active December 26, 2015 06:49
/**
* Determine the mean of a list of integers in a file 'nums.txt'.
* One integer is on each line in the file. Writes the mean in a
* nicely formatted way into a file mean.txt. Will override
* mean.txt if it exists already.
* @author Chi Zeng (zeng@college.harvard.edu) + section-mates.
* Oct. 22, 2013
*/
#include <stdio.h>
@chihuahua
chihuahua / mergeSort.c
Created October 9, 2013 01:40
Merge Sort
/**
* Merge sort.
*
* By Chi Zeng (chi@chizeng.com) and compatriots who cared enough about CS50 to
* come to section.
* Oct. 8, 2013
*/
#include <stdio.h>
#include <stdlib.h>
@chrislaskey
chrislaskey / flask_application.wsgi
Created February 23, 2013 21:49
Example of a basic .WSGI template for Python Flask deployments using Apache with Mod_WSGI
#!/usr/bin/env python
# Adding the current directory to the Python path is easy:
import os
import sys
this_dir = os.path.dirname(__file__)
sys.path.insert(0, this_dir)
# Now that the Python path includes the current directory, any
# application specific modules can be loaded just like this was
@cgoldberg
cgoldberg / mailbox.py
Created November 26, 2012 18:33
MailBox class for processing IMAP email (Gmail from Python example)
#!/usr/bin/env python
"""MailBox class for processing IMAP email.
(To use with Gmail: enable IMAP access in your Google account settings)
usage with GMail:
import mailbox
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname