Skip to content

Instantly share code, notes, and snippets.

View BeckyDTP's full-sized avatar

Becky BeckyDTP

  • Poland
View GitHub Profile
@BeckyDTP
BeckyDTP / git-feature-workflow.md
Created November 2, 2020 18:37 — forked from blackfalcon/git-feature-workflow.md
Git basics - a general workflow

Git-workflow or feature branching

When working with Git, there are two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited, and the focus of this article.

If you are new to Git and Git-workflows, I suggest reading the [atlassian.com Git Workflow][article] article in addition to this as there is more detail there than presented here.

I admit, using Bash in the command line with the standard configuration leaves a bit to be desired when it comes to awareness of state. A tool that I suggest using follows these instructions on [setting up GIT Bash autocompletion][git-auto]. This tool will assist you to better visualize the state of a branch in regards to changes and being in sync with the remote repo.

Basic branching

# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@BeckyDTP
BeckyDTP / git-cheat-sheet.md
Created January 9, 2020 10:51 — forked from jjjjcccjjf/git-cheat-sheet.md
GIT CHEAT SHEET by TOWER - www.git-tower.com

CREATE

Clone an existing repository

$ git clone ssh://[email protected]/repo.git

Create a new local repository

$ git init

LOCAL CHANGES

@BeckyDTP
BeckyDTP / dark_fusion.py
Created December 17, 2019 19:40 — forked from lschmierer/dark_fusion.py
Qt5 Dark Fusion Palette for Python
qApp.setStyle("Fusion")
dark_palette = QPalette()
dark_palette.setColor(QPalette.Window, QColor(53, 53, 53))
dark_palette.setColor(QPalette.WindowText, Qt.white)
dark_palette.setColor(QPalette.Base, QColor(25, 25, 25))
dark_palette.setColor(QPalette.AlternateBase, QColor(53, 53, 53))
dark_palette.setColor(QPalette.ToolTipBase, Qt.white)
dark_palette.setColor(QPalette.ToolTipText, Qt.white)
@BeckyDTP
BeckyDTP / CSS for <sup> and <sub>
Created January 6, 2019 18:32 — forked from unruthless/CSS for <sup> and <sub>
CSS for <sub> and <sup>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position
@BeckyDTP
BeckyDTP / theme-detect.css
Created March 16, 2018 19:40 — forked from adaptivegarage/theme-detect.css
Pure CSS ePub theme detection (White / Sepia / Night) in iBooks (Mac OS and iOS included)
/*
Pure CSS ePub theme detection (White / Sepia / Night) in iBooks (Mac OS and iOS included)
Version 1.1
Note that iBooks actually uses internal JavaScript to set the "__ibooks_internal_theme" attribute on :root (html) element
every time the theme is changed, but this happens independently of whether your epub html markup is scripted or not.
Discovered and tested in iBooks on Mac, iPhone and iPad by
https://twitter.com/adaptivegarage
*/
@BeckyDTP
BeckyDTP / epubgrep.py
Last active October 13, 2017 10:27 — forked from carter-yagemann/epubgrep.py
epubgrep
"""
Simplifies the process of grepping EPUB files.
Grep must be installed for this script to work.
Copyright (c) 2016 Carter Yagemann
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
@BeckyDTP
BeckyDTP / metadata.txt
Last active December 30, 2016 00:15
Dla Athame
[
{
"type": "external_resource",
"id": "resource_0_1_eeacb7e7a030d0aa_3_cover_png",
"value": {
"S162": "image/jpg",
"location": "images/res_0_1_4006cbb8bb37fd81_1e3b_cdb0da30-39c7-4216-87db-0dd3353c8e3a2341654502795240937.jpg",
"S422": 600,
"S423": 927,
"S161": "S285",