Skip to content

Instantly share code, notes, and snippets.

Ceasar Bautista Ceasar

Block or report user

Report or block Ceasar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1114213
C:\Program Files (x86)\Android\android-sdk-windows\tools>cd \
C:\>echo %USERPROFILE%
C:\Users\Ceasar
C:\>echo %PATH%
C:\Program Files (x86)\Java\jdk1.6.0_23\bin;C:\Ruby192\bin;C:\Program Files (x86
)\Git\bin;C:\Python26;C:\Python26\Scripts;C:\Program Files (x86)\Android\android
-sdk-windows\tools;C:\Program Files (x86)\scala\bin
View gist:1114363
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Ceasar>systeminfo
Host Name: BAUTISTC-PC
OS Name: Microsoft Windows 7 Home Premium
OS Version: 6.1.7600 N/A Build 7600
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
View diagnostics2
C:\Program Files (x86)\Android\android-sdk-windows\tools>cd \
C:\>echo %USERPROFILE%
C:\Users\Ceasar
C:\>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\J
ava\jdk1.6.0_23\bin;C:\Ruby192\bin;C:\Program Files (x86)\Git\bin;C:\Python26;C:
\Python26\Scripts;C:\Program Files (x86)\Android\android-sdk-windows\tools;C:\Pr
@Ceasar
Ceasar / gist:1308159
Created Oct 24, 2011
ls | grep -v '\.pyc$' | column
View gist:1308159
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls
README __init__.pyc markov.py matrix2graph.pyc pathfinder.pyc priority_dict.pyc spanning.py
__init__.py graph.py matrix2graph.py pathfinder.py priority_dict.py space.py vector.py
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls | grep -v '\.pyc$' | column
README graph.py matrix2graph.py priority_dict.py spanning.py
__init__.py markov.py pathfinder.py space.py vector.py
@Ceasar
Ceasar / gist:1308298
Created Oct 24, 2011
ls | grep -v '\.pyc$' | column | od -c
View gist:1308298
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls
README __init__.pyc markov.py matrix2graph.pyc pathfinder.pyc priority_dict.pyc spanning.py
__init__.py graph.py matrix2graph.py pathfinder.py priority_dict.py space.py vector.py
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls | grep -v '\.pyc$' | column
README graph.py matrix2graph.py priority_dict.py spanning.py
__init__.py markov.py pathfinder.py space.py vector.py
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls | grep -v '\.pyc$' | column | od -c
0000000 R E A D M E \t \t m a t r i x 2 g
0000020 r a p h . p y \t s p a n n i n g
0000040 . p y \n _ _ i n i t _ _ . p y \t
View gist:1308445
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls
README __init__.pyc markov.py matrix2graph.pyc pathfinder.pyc priority_dict.pyc spanning.py
__init__.py graph.py matrix2graph.py pathfinder.py priority_dict.py space.py vector.py
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls | column
README graph.py matrix2graph.pyc priority_dict.py spanning.py
__init__.py markov.py pathfinder.py priority_dict.pyc vector.py
__init__.pyc matrix2graph.py pathfinder.pyc space.py
ceasarbautista@hse140:~/Desktop/Statistics/statistics/markov$ ls | column | cat
README pathfinder.py
__init__.py pathfinder.pyc
View newbie-pcr-views.py
from django.shortcuts import render_to_response
def index(request):
return render_to_response('index.html')
View newbie-pcr-app-urls.py
from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
(r'^$', index),
)
View newbie-pcr-course.html
<html>
<body>
<ul>
{% for course in courses %}
<li>{{course.name}}</li>
{% endfor %}
</ul>
</body>
</html>
@Ceasar
Ceasar / api.py
Created Oct 29, 2011
A module for accessing APIs.
View api.py
import urllib
import urllib2
import json
from ..settings import API, TOKEN
def pcr(*args, **kwargs):
kwargs["token"] = TOKEN
path = "".join((API, "/".join([str(arg) for arg in args]), "?", urllib.urlencode(kwargs)))
You can’t perform that action at this time.