Skip to content

Instantly share code, notes, and snippets.

View piotros's full-sized avatar
💻

Piotr Baran piotros

💻
View GitHub Profile
@ministe2003
ministe2003 / userscript.js
Last active March 13, 2025 11:34 — forked from fanuch/userscript.js
Block Click to Edit on Jira Issue
// ==UserScript==
// @name Disable Jira Click Edit
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Disable click edit in Jira issue descriptions
// @author fanuch
// @match https://*.atlassian.net/browse/*
// @match https://*.atlassian.net/jira/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net
// @grant none
@wybiral
wybiral / noscript-tracking.go
Last active October 28, 2024 23:01
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)

npx script template

@emilio-martinez
emilio-martinez / README.md
Last active September 19, 2023 18:04
npx-git-diff-name-status

This script calls git diff --name-status and optionally adds --diff-filter when using --filter.

Examples: npx ./index.js v1.0.0 npx ./index.js v1.0.0 --filter mr

An argument of <revision>, <revision>..<revision>, or <revision>...<revision> is required to pass to git diff. See https://git-scm.com/docs/git-diff for more info.

Upload images to GitHub

  1. Create a new issue on GitHub.

  2. Drag an image into the comment field.

  3. Wait for the upload process to finish.

  4. Copy the URL and use it in your Markdown files on GitHub.

@zkat
zkat / index.js
Last active March 26, 2025 08:06
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@myshov
myshov / function_invocation.js
Last active August 19, 2024 12:23
11 Ways to Invoke a Function
console.log(1);
(_ => console.log(2))();
eval('console.log(3);');
console.log.call(null, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);
Function.prototype.apply.call(console.log, null, [9]);
Function.prototype.call.call(console.log, null, 10);
@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active March 24, 2025 23:12
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
@Turbo87
Turbo87 / app.js
Created February 15, 2015 04:05
webpack + font-awesome test
require('font-awesome/css/font-awesome.css');
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';
moved to github --> https://github.com/bill-auger/git-branch-status/