This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Stuffy(object): | |
def __init__(self, s = None): | |
self.buffer = s | |
def eek(self): | |
return self.buffer | |
if __name__ == '__main__': | |
s1 = Stuffy(10) | |
s2 = Stuffy(20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sum = 0 | |
for i in range(1, 11): | |
sum = sum + i | |
print sum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git練習用 | |
Git練習用 | |
Git練習用 | |
Git練習用 | |
Git練習用 | |
Git練習用 | |
Git練習用 | |
Git練習用 | |
Git練習用 | |
Git練習用 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sforce.enterprise import SforceEnterpriseClient | |
h = SforceEnterpriseClient('/home/user/.conf/enterprise.wsdl.xml') | |
h.login('[email protected]', 'password', 'securitytoken') | |
lead = h.generateObject('Lead') | |
lead.FirstName = 'Masayoshi' | |
lead.LastName = 'Nakamura' | |
lead.Company = 'Masasushi, Inc.' | |
lead.Email = '[email protected]' | |
result = h.create(lead) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from pylons import config, request, response, session, tmpl_context as c | |
from pylons.controllers.util import abort, redirect_to, url_for | |
from rpxclock.lib.base import BaseController, render | |
log = logging.getLogger(__name__) | |
import urllib2 |
NewerOlder