Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"github.com/imroc/req"
"log"
"os"
"time"
)
@gaucheph
gaucheph / RequirementsGenerator.cs
Created January 11, 2017 20:55
Given lists of possible values for 2 parameters and a list of positive relations between them, generate a comprehensive list of requirements.
using System;
using System.Collections.Generic;
using System.Linq;
namespace Combinations
{
public class Program
{
public static void Main(string[] args)
{
@gaucheph
gaucheph / seths_tool_v2.py
Last active March 17, 2017 14:07
Generates list of dates at specific intervals before a given date then creates an *.ics file with those dates as events
from datetime import date, datetime, timedelta
from icalendar import Calendar, Event
import tempfile, os, pytz
# DEFINITION ####################
class SymphonySchedule:
def __init__(self, name, deadline, schedule_events=[]):
self.name = name
self.deadline = deadline
self.schedule_events = schedule_events
@gaucheph
gaucheph / seths_tool
Created January 10, 2017 00:44
Generates list of dates at specific intervals before a given date then creates an *.ics file with those dates as events
from datetime import datetime, timedelta
from icalendar import Calendar, Event
import tempfile, os
# lists of date itervals specific to each type of schedule item
milestones_symphony = [7, 14, 28, 112]
milestones_opera = [7, 14, 21, 28]
milestones_other = [7, 28, 364]