Skip to content

Instantly share code, notes, and snippets.

View l34marr's full-sized avatar

TsungWei Hu l34marr

View GitHub Profile
<!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;
@l34marr
l34marr / reachs.py
Last active August 31, 2017 13:45
Read Excel File
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():
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);
@l34marr
l34marr / develop.cfg
Created December 10, 2018 15:49
develop.cfg for Plone 5.1.2 + Volto
#################################################################
#
# 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:
#
@l34marr
l34marr / crm.lead.csv
Last active February 14, 2020 02:54
Error Message
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
@l34marr
l34marr / rst_renderer.py
Created December 27, 2022 07:12 — forked from scanny/rst_renderer.py
Code to translate RestructuredText into Microsoft Word document using python-docx
# encoding: utf-8
"""
Helper objects for rendering to .docx format.
"""
from __future__ import (
absolute_import, division, print_function, unicode_literals
)