Skip to content

Instantly share code, notes, and snippets.

@optixx
optixx / OAuthRequest
Created January 16, 2014 12:42
OAuthRequest Wrapper for desk.com
import oauth2 as oauth
import time
import simplejson
import httplib2
import logging
import pprint
logger = logging.getLogger("model")
@optixx
optixx / concat.py
Created August 14, 2011 11:12
Concat css files
#!/usr/bin/python
import os
def main():
data = str()
for root, dirs, files in os.walk("."):
for file in files:
path = os.path.join(root,file)
print path
###############################################################################
# Prompt
###############################################################################
BLACK="%{%}"
BOLD_BLACK="%{%}"
RED="%{%}"
BOLD_RED="%{%}"
GREEN="%{%}"
BOLD_GREEN="%{%}"
We couldn’t find that file to show.
import os
if any( [ os.path.exists(os.path.join(p,"vim")) for p in os.environ["PATH"].split(":")] ):
print "Found"