Skip to content

Instantly share code, notes, and snippets.

View luciomartinez's full-sized avatar
🍫
I'd code for chocolates

Lucio Martinez luciomartinez

🍫
I'd code for chocolates
View GitHub Profile
@firebait
firebait / jiraTicketsForRelease.js
Last active May 30, 2019 21:05
Gist generates a URL that will find the list of JIRA tickets for a particular release. UPDATE YOUR CREDENTIALS AND RELEASE BRANCH.
const https = require('https');
//////////// UPDATE THESE VALUES /////////////
const releaseBranch = '<RELEASE BRANCH>';
const githubUsername = '<YOUR USERNAME>';
const githubPassword = '<YOUR PASSWORD>'
//////////////////////////////////////////////
const stories = new Set();
let processedRepos = 0;
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active April 30, 2024 23:36
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@nathan-osman
nathan-osman / Makefile
Created April 22, 2013 18:28
Demonstrates the implementation of a "variant" type in C++.
CXX = g++
LD = g++
variant: main.o
$(LD) main.o -o variant
main.o: type.h variant.h main.cpp
$(CXX) -c main.cpp -o main.o
import re
# Some mobile browsers which look like desktop browsers.
RE_MOBILE = re.compile(r"(iphone|ipod|blackberry|android|palm|windows\s+ce)", re.I)
RE_DESKTOP = re.compile(r"(windows|linux|os\s+[x9]|solaris|bsd)", re.I)
RE_BOT = re.compile(r"(spider|crawl|slurp|bot)")
def is_desktop(user_agent):
"""