Skip to content

Instantly share code, notes, and snippets.

View andreaskomochar's full-sized avatar

Andreas andreaskomochar

  • Slovenia
View GitHub Profile
@andreaskomochar
andreaskomochar / csv_splitter.py
Created April 11, 2017 06:45 — 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:
@andreaskomochar
andreaskomochar / index.php
Last active August 29, 2015 14:23
CalendarAPI
<?php
include "povezavaAPI.php";
// Get the API client and construct the service object.
$client = getClient();
$service = new Google_Service_Calendar($client);
// Print the next 10 events on the user's calendar.
$calendarId = 'primary';
@andreaskomochar
andreaskomochar / index.html
Last active August 29, 2015 14:16
CSS responsive menu
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<div class="banner">