Skip to content

Instantly share code, notes, and snippets.

---
title: "IS 609 Homework 4"
author: "Aaron Palumbo"
date: "Saturday, September 20, 2014"
output: pdf_document
---
Homework 4:
## Page 191: #3
@arslnb
arslnb / get_access_token.py
Created November 14, 2012 11:55
Python Wrapper around Twitter API
import os
import sys
try:
from urlparse import parse_qsl
except:
from cgi import parse_qsl
import oauth2 as oauth
package com.smeet.cassandra;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import com.sun.net.httpserver.HttpServer;
import org.apache.cassandra.db.CompactionManager;
import org.apache.cassandra.db.CompactionManagerMBean;
import org.apache.cassandra.service.StorageProxyMBean;
import org.apache.cassandra.service.StorageServiceMBean;
@jquacinella
jquacinella / python-cheat-sheet-basic.py
Last active September 20, 2016 22:49 — forked from filipkral/python-cheat-sheet-basic.py
Basic Python Cheat Sheet
#!/usr/bin/env python
"""Basic Python Cheat Sheet by Filip Kral on 2015/02/16"""
""" Updated by James Quacinella for MIMS:5001 """
"""
Python is a cross-platform, interpreted, object-oriented programming language.
That means you can run it on Linux, Windows, Mac, and other platforms,
you don't need to compile your code to execute it because it is compiled on
the fly, and you can use classes and objects.
@pottava
pottava / docker-swarm-on-aws.sh
Last active April 17, 2017 20:18
Docker Swarm on AWS Multiple AZ
#!/bin/sh
# Create consul container
export AWS_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY
export AWS_DEFAULT_REGION=ap-northeast-1
export AWS_ZONE=a
export AWS_SUBNET_ID
export AWS_INSTANCE_TYPE=c4.large
@dubravkoL
dubravkoL / htmlTags.html
Last active March 14, 2018 14:19
HEAD html - Must-Have Social Meta Tags for Twitter, Google+, Facebook and More
<head>
<!--///////// Minimum Social Media Tag Template: Article //////////-->
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />
@higebu
higebu / cassandra_zabbix_template.xml
Created June 6, 2012 05:46
Zabbix Template for Cassandra
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2012-05-14T12:36:06Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@subsetpark
subsetpark / gist:367f0d3fde503a1e481c
Created June 16, 2015 15:48
Building Python 2.7.10 on Ubuntu 14.04 LTS
$ sudo apt-get install -y gcc-multilib g++-multilib libffi-dev libffi6 libffi6-dbg python-crypto python-mox3 python-pil python-ply libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libgdbm-dev dpkg-dev quilt autotools-dev libreadline-dev libtinfo-dev libncursesw5-dev tk-dev blt-dev libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libsqlite3-dev libgpm2 mime-support netbase net-tools bzip2
$ wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
$ tar xvf Python-2.7.10.tgz
$ cd Python-2.7.10/
$ ./configure --prefix /usr/local/lib/python2.7.10 --enable-ipv6
$ make
$ sudo make install
@tangjeff0
tangjeff0 / random_notion.py
Last active July 9, 2023 17:01
get random notion notes to resurface your old ideas!
'''
author:
@tangjeff0
https://www.notion.so/tangjeff0/Public-Home-0e2636bd409b454ea64079ad8213491f
inspired by: https://praxis.fortelabs.co/p-a-r-a-iii-building-an-idea-generator-400347ef3bb6/
with help from: https://medium.com/@jamiealexandre/introducing-notion-py-an-unofficial-python-api-wrapper-for-notion-so-603700f92369
credits:
@jamiealexandre