Skip to content

Instantly share code, notes, and snippets.

Avatar

Ariel Parra darkaico

View GitHub Profile
@darkaico
darkaico / git_tools.sh
Last active Mar 24, 2017
Delete all Tags
View git_tools.sh
# Delete all tags remotely
git tag -l | xargs -n 1 git push --delete origin
# Delete all tags locally
git tag | xargs git tag -d
# Delete all merged branches
git fetch --prune; git branch -r --merged | grep origin | grep -v '>' | grep -v master | xargs -L1 | awk '{sub(/origin\//,"");print}' | xargs git push origin --delete
View markers
def assign_marker(people_to_mark, marker_index):
result = list(people_to_mark)
for idx, i in enumerate(people_to_mark):
if marker_index < len(result):
marker_index = marker_index + 1
if marker_index < len(result):
del result[marker_index]
else:
del result[0]
break
View JsonConverter.php
<?php
/**
* Php JsonConverter
*
* @author Ariel Parra <darkaico@gmail.com>
* @version 0.4.0
*
*/
class JsonConverter {
/**
You can’t perform that action at this time.