Skip to content

Instantly share code, notes, and snippets.

View paulostradioti's full-sized avatar

Paulo Ricardo Stradioti paulostradioti

View GitHub Profile
@srmagura
srmagura / .editorconfig
Last active October 16, 2023 15:20
.editorconfig with StyleCop and SonarLint rule customizations
[*.cs]
csharp_style_var_for_built_in_types=true:silent
csharp_style_var_when_type_is_apparent=true:silent
csharp_style_var_elsewhere=true:silent
##
## StyleCop.Analyzers
##
# Using directive should appear within a namespace declaration
@dmytrokulak
dmytrokulak / DotNetBooklist.txt
Created August 28, 2021 07:35
Books for a .NET developer by levels
Trainee
Ayo Agboola; Practice Your C# Level 1
Junior
Ali Asad; The C# Programmer’s Study Guide (MCSD): Exam: 70-483
Jon Skeet; C# in Depth 4th Edition
Roy Osherove; The Art of Unit Testing: with examples in C# 2nd Edition
Stephen Cleary; Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming 2nd Edition
Fanie Reynders; Modern API Design with ASP.NET Core 2: Building Cross-Platform Back-End Systems
Bill Wagner; More Effective C# (Includes Content Update Program): 50 Specific Ways to Improve Your C# (Effective Software Development Series)
@wojteklu
wojteklu / clean_code.md
Last active March 27, 2024 06:18
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@jhorsman
jhorsman / Cisco_Anyconnect.ps1
Created January 6, 2015 10:11
PowerShell to automate VPN connection with Cisco AnyConnect Secure Mobility Client
#Source www.cze.cz
#This script is tested with "Cisco AnyConnect Secure Mobility Client version 3.1.00495"
# Usage: & '.\Cisco_Anyconnect.ps1' [-Server <server name or ip>] [-Group <group>] [-User <user>] [-Password <password>]
#Please change following variables
#IP address or host name of cisco vpn, Username, Group and Password as parameters
param (
[string]$Server = $( Read-Host "Input server, please" ),
@killwing
killwing / slideshare-downloader.sh
Last active December 15, 2015 04:38 — forked from giudinvx/slideshare-downloader.sh
[slideshare-downloader] This script takes a slideshare presentation URL as an argument and carves all the slides in flash format, then they are converted to and finally merged as a PDF.
#!/bin/bash
# Author: Andrea Lazzarotto
# http://andrealazzarotto.com
# andrea.lazzarotto@gmail.com
# Slideshare Downloader
# This script takes a slideshare presentation URL as an argument and
# carves all the slides in flash format, then they are converted to
# and finally merged as a PDF
@wnoizumi
wnoizumi / fizz_buzz.rb
Created July 18, 2012 18:39
FizzBuzz kata using ruby
module FizzBuzz
def as_fb
return 'FizzBuzz' if self % 15 == 0
return 'Fizz' if self % 3 == 0
return 'Buzz' if self % 5 == 0
return self.to_s
end
end
class Fixnum