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
(*-------------------------------------------------------------------------------------------- | |
* Copyright (c) 2017 Celso Junior, celsojrfull@gmail.com. All rights reserved. | |
* Licensed under the MIT License. See License.txt in the project root for license information. | |
* F# Tail Recursive Factorial in a functional programming approach. | |
* Also using the CPS technique (Continuation Passing Style). | |
* Ref.: https://en.wikipedia.org/wiki/Continuation-passing_style | |
* --------------------------------------------------------------------------------------------*) | |
[<TailCall>] | |
let fac1 x = |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style> | |
body { | |
background-color: black; | |
display: flex; |
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
using System; | |
long n = 8; | |
for (int i = 0; i < 60; i++) | |
{ | |
var storage = n << i; | |
Console.WriteLine($"{storage.Amount()} {storage.Unit()}"); | |
} | |
static class Extensions |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Json; | |
using System.Text.Json; |
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
using System; | |
using System.Threading.Tasks; | |
using System.Runtime.CompilerServices; | |
static class Program | |
{ | |
static async Task Main() | |
{ | |
Console.WriteLine("One second pls..."); |
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
using System; | |
using static System.Console; | |
namespace Snippets | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ | |
static long Fact(long x) |
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
SetCapsLockState, AlwaysOff | |
CapsLock & /::Up | |
CapsLock & SC15D::Down | |
CapsLock & SC138::Left | |
CapsLock & SC11D::Right | |
CapsLock & l::Home | |
CapsLock & .::End | |
CapsLock & ,::Delete | |
CapsLock & `;::PgUp | |
CapsLock & '::PgDn |
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
DECLARE @Participantes TABLE | |
( | |
Numero INT | |
) | |
INSERT INTO @Participantes VALUES (1), (2), (3) | |
DECLARE @RESPONSAVEL_TECNICO INT = 1 | |
DECLARE @TRUE INT = 1 | |
DECLARE @PRINCIPAL INT = 1 |
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
//// ../../styles/_mixins.scss | |
// @mixin prefix($property, $value, $prefixes: webkit moz ms o) { | |
// @each $prefix in $prefixes { | |
// -#{$prefix}-#{$property}: $value; | |
// } | |
// #{$property}: $value; | |
// } | |
// @mixin same-value($value, $properties) { | |
// @each $property in $properties { |
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 api/v1/author/{authorId} | |
/// <summary> | |
/// Deletes an Author | |
/// </summary> | |
/// <remarks>Deletes an Author</remarks> | |
/// <param name="authorId"></param> | |
[HttpDelete("{authorId:length(24)}", Name = nameof(DeleteAuthor))] | |
[ProducesResponseType(StatusCodes.Status404NotFound)] | |
[ProducesResponseType(typeof(DeleteModel<>), StatusCodes.Status200OK)] | |
public async Task<IActionResult> DeleteAuthor(string authorId) |
NewerOlder