>>> a = 1
# What's the difference between the following operations?
In [1]: print a
In [2]: a
This file contains 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
# encoding: utf-8 | |
""" | |
Helper objects for rendering to .docx format. | |
""" | |
from __future__ import ( | |
absolute_import, division, print_function, unicode_literals | |
) |
This file contains 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
id | name | partner_id | country_id | activity_summary | stage_id | planned_revenue | probability | team_id | |
---|---|---|---|---|---|---|---|---|---|
__export__.crm_lead_2_64f28df9 | Data Scientist; Machine Learning Engineer | Chang Amin | Accessment | New | 0.0 | Sales |
This file contains 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
################################################################# | |
# | |
# Development Configuration | |
# ========================= | |
# | |
# This is a buildout configuration that sets up a development | |
# environment for Plone. It extends buildout.cfg. | |
# | |
# To use this configuration, run buildout via: | |
# |
This file contains 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
var NOW = new Date(); | |
var TY = NOW.getFullYear(); | |
var TM = NOW.getMonth()+1; | |
function chg_cals(Y,M){ | |
var tb=document.getElementById("cal"); | |
var F=true; | |
var R=0; | |
var D=1; | |
var DW; | |
var DM = new Array(Y,31,28,31,30,31,30,31,31,30,31,30,31); |
This file contains 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 openpyxl import load_workbook | |
wb = load_workbook('vol3.xlsx') | |
print wb.get_sheet_names() | |
#ws = wb.get_sheet_by_name(u'Sheet1') | |
ws = wb.worksheets[0] | |
print ws.max_row, ws.max_column | |
result = [] | |
for row in ws.iter_rows(): |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>OpenLayers Bounding Box Selector Example</title> | |
<script src="http://www.openlayers.org/api/OpenLayers.js"></script> | |
<script> | |
var vectors; | |
var box; |
This file contains 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 computer as tool | |
def hacker(problem): | |
’’’ a generator | |
’’’ | |
try: | |
tool.fix(problem) | |
except: | |
report(bug) | |
yield patch # don’t reboot it |
This file contains 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 Testing import makerequest | |
from AccessControl.SecurityManagement import newSecurityManager | |
from Products.CMFCore.utils import getToolByName | |
root = makerequest.makerequest(app) | |
site = root.mysite | |
admin = root.acl_users.getUserById('admin') | |
admin = admin.__of__(site.acl_users) | |
newSecurityManager(None, admin) |
This file contains 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
<html> | |
<head> | |
<title>Simplest HTML Page</title> | |
</head> | |
<body> | |
<h1 style="color: Red">My First HTML Page</h1> | |
<p>English Paragraph Goes Here. So You Can Learn That: | |
<ol> | |
<li style="color: Red">h1 Means Heading One</li> | |
<li>p Means Paragraph</li> |
NewerOlder