Skip to content

Instantly share code, notes, and snippets.

View casperlehmann's full-sized avatar

Casper Lehmann casperlehmann

View GitHub Profile
#! -*- coding:utf8 -*-
def generate_inverse_transformations(left,right):
return (
lambda left: {
'uuid': left.get('key'),
'first_name': left.get('name').get('first'),
'last_name': left.get('name').get('last'),
'triple_tuples': [x for x in left.get('triples').items()],
'opposites': [{'first': x, 'second': y} for x,y in left.get('opposites')]
@casperlehmann
casperlehmann / git-deployment.md
Created August 24, 2020 20:29 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.