Skip to content

Instantly share code, notes, and snippets.

View gusthavosouza's full-sized avatar
🇮🇸
Working from 🇮🇸

Gustavo De Souza gusthavosouza

🇮🇸
Working from 🇮🇸
View GitHub Profile
<(?:h:outputLabel)(?:\s+(?!for\b)[\w\-.:]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[\w\-.:]+))?)*\s*/?>
public class StairCase {
public static void main(String[] args) {
stairCase(10);
// output
// #
// ##
// ###
// ####
// #####
FOR /L %%A IN (1,1,1000) DO (
shutdown /r /m \\MICRO-%%A
ECHO shutdown /r /m \\MICRO-%%A
)
struct Person {
var about: String
var firstName: String
var lastName: String
var job: String
func printPerson() {
print("About \(firstName) \(lastName)")
print("\(about)")
print("May be working as \(job)")
@gusthavosouza
gusthavosouza / git-tag-delete-local-and-remote.sh
Created April 1, 2020 21:40 — forked from mobilemind/git-tag-delete-local-and-remote.sh
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