Skip to content

Instantly share code, notes, and snippets.

View lackovic's full-sized avatar

Marco Lackovic lackovic

View GitHub Profile
@Chailotl
Chailotl / main.ahk
Created February 1, 2022 22:43
An AutoHotKey script I used to use, now replaced with Microsoft PowerToys and hardware media keys.
; -----
; = Shortcuts = (Ctrl+LShift+...)
; Space - Pin/unpin active window
;
; = Music Controls = (Ctrl+LShift+...)
; Down Arrow - Lower volume
; Up Arrow - Raise volume
; Right Shift - Pause/play music
; Left Arrow - Previous track
; Right Arrow - Next Track
@mikksoone
mikksoone / 0_pre.sh
Last active January 19, 2021 08:57
start.spring.io app dockerize + k8s workshop
gcloud auth login
gcloud container clusters get-credentials k8s-ws-6 --zone europe-west1-b --project k8s-ws-7
gcloud auth configure-docker
kubectl version
kubectl get nodes
kubectl create namespace myname
@micheleriva
micheleriva / jsmonday-carbon.json
Created July 22, 2019 20:08
JSON configuration for the JSMonday Carbon template
{
"paddingVertical":"0px",
"paddingHorizontal":"0px",
"marginVertical":"45px",
"marginHorizontal":"45px",
"backgroundImage":null,
"backgroundImageSelection":null,
"backgroundMode":"color",
"backgroundColor":"rgba(255,255,255,0)",
"dropShadow":true,
@chuckplantain
chuckplantain / executionOrderJestJasmine.js
Created April 5, 2018 13:59
Execution order of async Jest/Jasmine test code
/**
* Demonstrate execution order of code in Jest/Jasmine
*/
function resolveAfter2Seconds(message) {
return new Promise((resolve) => {
setTimeout(() => {
resolve(message)
}, Math.ceil(Math.random() * 5000))
})
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active June 29, 2024 15:54
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 3, 2024 12:57
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@zmwangx
zmwangx / No longer able to make public gists secret.md
Last active April 11, 2024 22:22
No longer able to make public gists private — message to GitHub

We've been able to toggle visibility of gists since 2014 (https://github.com/blog/1837-change-the-visibility-of-your-gists), but I just noticed that I can no longer make public gists private. That is, when I edit private gists I still see the "Make Public" button, but not the other way round — there's only a "Delete" button when I edit public gists; the "Make Secret" which should be next to it (as shown in the screencast in the linked blog post) is nowhere to be found. I made a screenshot and a screencast demonstrating the issue, both of which are attached. Could you please confirm this issue? Was this an intentional change, and why? Thank you for your attention.

gist-unable-to-make-secret

![gist-unable-to-make-secret](https://cloud.githubusercontent.com/assets/4149852/16898407/c76db210-4c0b-11e6-9108-0450f1edebb4.gif)
@toddmotto
toddmotto / *.md
Last active April 25, 2023 09:06
Component versus Directive in AngularJS

Component versus Directive in AngularJS

.component()

Components are not "helper" methods, they are the best change in Angular 1.x since I've been using it.

What is the role of .component()?

  • Declares new HTML via a template or templateUrl
  • Should be used to create Components as part of a Component architecture
/**
* This Google Sheets script keeps data in the specified column sorted any time
* the data changes.
*
* After much research, there wasn't an easy way to automatically keep a column
* sorted in Google Sheets, and creating a second sheet to act as a "view" to
* my primary one in order to achieve that was not an option. Instead, I
* created a script that watches for when a cell is edited and triggers
* an auto sort.
*
@brettlangdon
brettlangdon / Wallpapers.md
Last active December 22, 2023 16:38
Wallpapers

Wallpapers

Install with git git clone https://gist.github.com/85942af486eb79118467.git ~/Pictures/wallpapers