Skip to content

Instantly share code, notes, and snippets.

View msdiniz's full-sized avatar
🏠
Working from home

Marcelo Scofano Diniz msdiniz

🏠
Working from home
  • Rio de Janeiro - Brazil
View GitHub Profile
@letanure
letanure / estados-cidades.json
Last active July 22, 2024 21:10
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@alimbada
alimbada / Wake.ps1
Last active July 20, 2024 20:09
PowerShell script for sending Wake On LAN magic packets to given machines/MAC address(es)
#######################################################
##
## Wake.ps1, v1.0, 2013
##
## Adapted by Ammaar Limbada
## Original Author: Matthijs ten Seldam, Microsoft (see: http://blogs.technet.com/matthts)
##
#######################################################
<#
@davidfowl
davidfowl / Example1.cs
Last active June 19, 2024 16:41
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
@ThadeuLuz
ThadeuLuz / dddsBrasileiros.json
Last active April 5, 2024 00:32
Objeto JSON com Estados Brasileiros por DDD e lista de DDDs por Estados.
{
"estadoPorDdd": {
"11": "SP",
"12": "SP",
"13": "SP",
"14": "SP",
"15": "SP",
"16": "SP",
"17": "SP",
"18": "SP",
'@Folder("View.Model")
Option Explicit
Private Const MODULE_NAME As String = "ListModel"
Private Type TListModel
Data() As Variant
Selected() As Boolean
Columns As Integer
Count As Integer
@msdiniz
msdiniz / sample-xqsx.xqy
Created June 15, 2019 17:04 — forked from grtjn/sample-xqsx.xqy
A brief exampe of XQuery 3.0 + Scripting Extensions..
(: A brief exampe of XQuery 3.0 + Scripting Extensions.. :)
(: This example was taken from a Twitter application
: written in XQuery!
:)
(: Follow functionality of Twitter :)
declare sequential function twitter:follow-friend()
{
(: Get the id of user to be followed.. :)
@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active July 25, 2024 10:23
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.