Skip to content

Instantly share code, notes, and snippets.

View windbishn's full-sized avatar

Nathaniel P. Windbish windbishn

View GitHub Profile
@windbishn
windbishn / csv_splitter.py
Created October 16, 2019 17:25 — forked from jrivero/csv_splitter.py
A Python CSV splitter
import os
def split(filehandler, delimiter=',', row_limit=10000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
"""
Splits a CSV file into multiple pieces.
A quick bastardization of the Python CSV library.
Arguments:
@windbishn
windbishn / 0-README.md
Created January 22, 2019 14:12 — forked from lstude/0-README.md
Add Indent / Outdent Functionality to Google Spreadsheets

This tutorial demonstrates how to add an "Indent Text" menu item to a Google spreadsheet so you can indent/outdent text.

  • When the "Indent Text" menu item is selected, any cells within a single column selection will be indented by 5 spaces.

  • You can increase or decrease the number of spaces the text is indented by changing the line below so that the "5" is changed to a larger or smaller number (depending on your preference):

newValues.push(['=CONCAT(REPT( CHAR( 160 ), 5),"' + values[i][0] + '")']);
import qualysapi
# import sys
import csv
import requests
import re
import xml.etree.ElementTree as ET
from datetime import datetime
# ezsmtp
import sys, smtplib, MimeWriter, base64, StringIO
import os, mimetypes, time, socket
# Read and write spreadsheets with ruby using the spreadsheet gem
# Full Docs: http://spreadsheet.rubyforge.org/GUIDE_txt.html
require 'spreadsheet'
# Open source spreadsheet
workbook = Spreadsheet.open 'source.xls'
# READ
{% if site.tags %}
<div class="tags">
{% for tag in site.tags %}
<a href="/tag/{{ tag.name }}">#{{ tag.name }}</a>
{% endfor %}
</div>
{% endif %}