Skip to content

Instantly share code, notes, and snippets.

@pietrop
pietrop / Sample Contract - Software Deliverable
Created September 24, 2017 15:58 — forked from jboeke/Sample Contract - Software Deliverable
Sample Contract - Software Deliverable
## For educational purposes only! Not a substitute for individualized advice from a qualified legal practitioner. ##
SOFTWARE CONSULTING AGREEMENT
THIS AGREEMENT is entered into on <contract date> by and between Avie, LLC, (hereinafter "Developer") and <client company>, (hereinafter "Company").
RECITALS
WHEREAS, Company wishes to retain Developer to develop certain <software type> software (hereinafter defined and referred to as “Software”); and
@pietrop
pietrop / GitHub-Forking.md
Created February 26, 2018 10:02 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@pietrop
pietrop / README.md
Last active May 6, 2020 14:29
README template

Brief of the project

One liner + link to confluence page

Screenshot of UI - optional

Setup

@pietrop
pietrop / .travis.yml #mac only
Last active August 6, 2018 04:32
Electron Travis CI Mac automated build `.travis.yml` file
# originally from https://github.com/OpenNewsLabs/autoEdit_2/issues/36 see PR for setup instructions with travis github token etc..
# https://github.com/OpenNewsLabs/autoEdit_2/blob/master/package.json
# need to set electron builder mac target to be only zip file, to skip dmg
# https://github.com/OpenNewsLabs/autoEdit_2/blob/master/package.json#L56
# dmg seems to take to long and hang the process
language: node_js
node_js:
- "10"
@pietrop
pietrop / .travis.yml #mac + linux
Created August 6, 2018 04:33
Electron Travis CI Mac + Linux automated build `.travis.yml` file
# https://github.com/OpenNewsLabs/autoEdit_2/issues/36
language: node_js
node_js:
- "7"
os:
- linux
- osx
@pietrop
pietrop / .travis.yml # Linux only
Created August 6, 2018 04:34
Electron Travis CI Linux only automated build `.travis.yml` file
# https://github.com/OpenNewsLabs/autoEdit_2/issues/36
language: node_js
node_js:
- "7"
os: linux
dist: trusty
sudo: required
@pietrop
pietrop / adr_template.md
Created October 29, 2018 10:25 — forked from iaincollins/adr_template.md
ADR Template

[short title of solved problem and solution]

  • Status: [accepted | superseded by ADR-0005 | deprecated | …]
  • Deciders: [list everyone involved in the decision]
  • Date: [YYYY-MM-DD when the decision was last updated]

Technical Story: [description | ticket/issue URL]

Context and Problem Statement

@pietrop
pietrop / pull_request_template.md
Created October 29, 2018 10:26 — forked from iaincollins/pull_request_template.md
Pull Request Template

Summary

A sentence describing the reason for the changes in this pull request.

Description

A few sentences / bullet points describing the goals of this change and the implementation.

Link to Issue

@pietrop
pietrop / interpolateWordsTimesFromSentence.js
Last active December 20, 2018 12:14
originally from https://github.com/pietrop/srtParserComposer and modified from PopcornJs srt parser. https://github.com/mozilla/popcorn-js/blob/master/parsers/parserSRT/popcorn.parserSRT.js - given a setence with start and end timecode it can compute and estimate start and end timings for each word.
/*
* originally from https://github.com/pietrop/srtParserComposer/blob/master/srtJsonToWordLinesJson.js()
* refactored
* Module to convert srtJson to nested array of line word objects.
Line to word timecode accuracty.
Original code modified from Popcorn srt parser.
https://github.com/mozilla/popcorn-js/blob/master/parsers/parserSRT/popcorn.parserSRT.js
input example
```js
@pietrop
pietrop / dpe-add-words-to-paragraphs.sj
Created November 29, 2019 12:42
example of how to interpolate DPE transcripts words with paragraphs
// some DPE transcript
const transcript = {
"words": [
{
"id": 0,
"start": 0.24,
"end": 0.56,
"text": "Wall"
},
{