This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Php JsonConverter | |
* | |
* @author Ariel Parra <darkaico@gmail.com> | |
* @version 0.4.0 | |
* | |
*/ | |
class JsonConverter { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from urllib.request import urlretrieve | |
from datetime import datetime | |
TOKEN = "<api_token_here" | |
FORM_URLS = "https://api.videoask.com/forms" | |
headers = {"Authorization": f"Bearer {TOKEN}"} | |
# I knew that my total videoasks were 84 so I'm going from 20 to 20 |