Skip to content

Instantly share code, notes, and snippets.

@ShriramK
ShriramK / fix.patch
Created December 7, 2012 12:43
Patch
diff --git a/master/buildbot/status/web/auth.py b/master/buildbot/status/web/auth.py
index e9b168c..d9f4fcd 100644
--- a/master/buildbot/status/web/auth.py
+++ b/master/buildbot/status/web/auth.py
@@ -183,7 +183,8 @@ class AuthFailResource(HtmlResource):
def content(self, request, cxt):
templates =request.site.buildbot_service.templates
- template = templates.get_template("authfail.html")
+ template = templates.get_template("authfail.html")
diff --git a/master/buildbot/status/web/baseweb.py b/master/buildbot/status/web/baseweb.py
index 2d9fa42..f169e05 100644
--- a/master/buildbot/status/web/baseweb.py
+++ b/master/buildbot/status/web/baseweb.py
@@ -352,7 +352,7 @@ class WebStatus(service.MultiService):
self.putChild("console", ConsoleStatusResource(
orderByTime=self.orderConsoleByTime))
self.putChild("tgrid", TransposedGridStatusResource())
- self.putChild("builders", BuildersResource()) # has builds/steps/logs
+ self.putChild("builders", BuildersResource(numbuilds=numbuilds)) # has builds/steps/logs
@ShriramK
ShriramK / output.patch
Created December 3, 2012 01:26
Patch file
diff --git a/master/buildbot/status/web/builder.py b/master/buildbot/status/web/builder.py
index 67e55c4..7ba8fd0 100644
--- a/master/buildbot/status/web/builder.py
+++ b/master/buildbot/status/web/builder.py
@@ -26,6 +26,7 @@ from buildbot.status.web.base import HtmlResource, BuildLineMixin, \
from buildbot.schedulers.forcesched import ForceScheduler, InheritBuildParameter
from buildbot.status.web.build import BuildsResource, StatusResourceBuild
from buildbot import util
+from buildbot.status.web.baseweb import WebStatus
@ShriramK
ShriramK / Example.txt
Created November 13, 2012 06:12
Mobile Skills description
Mobile Engineer
Scopely is a rapidly growing social mobile gaming startup founded by proven entrepreneurs and backed by distinguished investors. Our sunny Los Angeles office is fueled by an abundant supply of coconut water, coffee, and camaraderie — with an irrepressible dash of mischief. In case you don’t live in LA or you’re not a US citizen, we consider relocation and/or visa costs to be a small price to pay for world-class talent.
We are looking for the most badass mobile engineers on the planet to help us develop Top 10 cutting-edge apps and games used by millions of users. Our mobile team is comprised of award winning hackers who expect to be working with world-class talent.
We set the bar extremely high at Scopely, but that’s the type of environment you crave. Your ambition to build something significant and lasting is exceeded only by your desire to be surrounded by coworkers who are equally relentless. If you are itching to be involved in a startup that’s going places and where you can have a co
@ShriramK
ShriramK / learningpickle.py
Created September 20, 2012 10:10
PickleQuestion
import cPickle as pickle
def fun():
print 'fun'
a = fun()
a = fun
pickle.dumps(a)
b=pickle.dumps(a)
c=pickle.loads(b)
a is c
True
@ShriramK
ShriramK / pythonprojects.txt
Created September 19, 2012 04:32
Python projects
http://wiki.python.org/moin/VolunteerOpportunities
http://wiki.python.org/moin/PythonProjects
https://develop.participatoryculture.org/index.php/CommunityProjects
https://openhatch.org/
@ShriramK
ShriramK / learning.txt
Created August 6, 2012 11:47
Scrapy links
#0)
https://www.ibm.com/developerworks/linux/library/l-spider/#N101C6
http://www2003.org/cdrom/papers/refereed/p096/p96-broder.html
http://stackoverflow.com/questions/5834808/designing-a-web-crawler/10763251#10763251
http://stackoverflow.com/questions/3359712/a-web-crawler-in-python-where-should-i-start-and-what-should-i-follow-help-n
http://www.daniweb.com/software-development/python/threads/237220/how-can-i-write-my-web-crawler-for-data-extraction
http://simoraman.com/2011/04/17/web-crawler-in-python/
http://www.quora.com/What-is-the-best-data-structure-for-maintaining-URLs-that-have-been-visited-by-a-Web-crawler
http://www.slideshare.net/gnap/design-and-implementation-of-a-high-performance-distributed-web-crawler
http://www.dreamincode.net/forums/topic/184832-web-crawler/
Twitter supports two authorization urls: /authenticate and /authorize. The difference is the user interface shown to the user on twitter. /authenticate should be used if the intent of OAuth is to use the twitter identity of the user to sign in to your own website, the /authorize endpoint should be used to just access the twitter API and not using the user profile on your own website.
import oauth2 as oauth
oauth = OAuth()
twitter = oauth.remote_app('twitter',
base_url='http://api.twitter.com/1/',
request_token_url='http://api.twitter.com/oauth/request_token',
access_token_url='http://api.twitter.com/oauth/access_token',
authorize_url='http://api.twitter.com/oauth/authorize',
consumer_key='xxx....',
consumer_secret='xxx...'
)
@ShriramK
ShriramK / this
Created July 17, 2012 13:16
mayer
“I wish I was more excited about it,” said Shar Van Boskirk, an analyst at Forrester Research. “Yahoo has too many products. I fear the challenge, is that by putting a former product person in the C.E.O. role they won’t have somebody who has the ability to create a clear, unified vision and strategy for the Yahoo brand.”