Skip to content

Instantly share code, notes, and snippets.

@dl6nm
dl6nm / clone.js
Created May 8, 2019 16:29
Clone JavaScript object with JSON stringify and parse in the callas pdfToolbox
function clone(obj) {
/*
Use this function in a callas pdfToolbox process plan for cloning objects (e.g. app.doc)
to manipulate them after a check was executed.
*/
if (obj !== undefined) {
return JSON.parse(JSON.stringify(obj));
}
return obj;
}
@dl6nm
dl6nm / Python-Project-Code-Structure.md
Last active July 26, 2023 01:08
Python Project Code Structure, App with internal packages,

Application with Internal Packages

In larger applications, you may have one or more internal packages that are either tied together with a main runner script or that provide specific functionality to a larger library you are packaging. We will extend the conventions laid out above to accommodate for this:

helloworld/
│
├── bin/
│
├── docs/

│ ├── hello.md

@dl6nm
dl6nm / install-cx_freeze-from-github
Last active February 20, 2019 14:55
Install cx_Freeze from github repository
# install cx_Freeze from github repository due to a bug with pip install (01/2019)
pip install --upgrade git+https://github.com/anthony-tuininga/cx_Freeze.git@master
@dl6nm
dl6nm / gist:39c78d5835bd1a7fc8c0caabffd29e6d
Created January 13, 2019 09:26 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@dl6nm
dl6nm / Software-Versioning-Scheme.md
Last active September 17, 2022 18:57
Software Versioning Scheme + Human Readable Version + Semantic Versioning (SemVer) with `git describe`

Software Versioning

Scheme

1.2.3[-beta.1][+123] → major.minor.patch[-pre-release][+build]
| | |    |      |
| | |    |      +-- build:        optional dot-separated build identifiers
| | |    +--------- pre-release:  optional dot-separated pre-release identifiers build metadata information
| | +-------------- hotfix:       make backwards-compatible bug fixes

| +---------------- feature: add functionallity in backwards-compatible manner

@dl6nm
dl6nm / README.md
Last active November 30, 2022 06:40
README Template

README Template

This template is intended for new projects to provide a structured README file.

[![Badges @ Shields IO][shield-badges]][shields] [![Version?][shield-version]][shields] [![Build passed?][shield-build]][shields] [![Language?][shield-markdown]][shields] [![Tested?][shield-tested]][shields] [![License?][shield-license]][shields]

@dl6nm
dl6nm / README.md
Created November 7, 2018 20:46 — forked from rowanmanning/README.md
Writing a Friendly README. This a companion-gist to the post: http://rowanmanning.com/posts/writing-a-friendly-readme/
@dl6nm
dl6nm / README-Template.md
Created November 1, 2018 21:56 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites