This file contains hidden or 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
// -------------------------------------------------------------------------------------------------------------------- | |
// | |
// Author: Jose Fernando Lopez | |
// Date: 6-November-2018 | |
// | |
// Description: This is a sample of how a named value might be implemented using a templated class in C++. | |
// I will update the constructor with proper move-semantics, add a copy constructor, etc., as | |
// well as add in string_view usage. I also need to add in operators in order for the value | |
// to be actually used. |
This file contains hidden or 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
// --------------------------------------------------------------------------------------------------------- | |
// | |
// Author: Jose Fernando Lopez Fernandez | |
// Date: 6-November-2018 | |
// | |
// Description: Logs the current function to std::clog. Simple inline function won't work for obvious reasons, | |
// so this is a workaround to not have to fire up the actual debugger and check the call stack. | |
// The function call format is for homogeneity in the code, while preventing confusion by explicitly | |
// including the fact that it is a macro in the name. |
This file contains hidden or 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
// | |
template <typename Callable, typename... Args> | |
decltype(auto) Call(Callable&& op, Args&&... args) | |
{ | |
//DoSomethingElseLikePossiblyLoggingOrSomething... | |
return std::forward<Callable>(op)(std::forward<Args>(args)...); | |
} |
This file contains hidden or 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
# Author: Jose Fernando Lopez Fernandez | |
# Date : 21-November-2018 | |
/-?\s?\d+(?(?=\.)\.|\d*)/ |
This file contains hidden or 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
#! /usr/bin/perl | |
# Uses file existence operator to test whether specified directory already exists. | |
# Directory name input mechanism is not assumed; trivial example provided. | |
# | |
# Author: Jose Fernando Lopez Fernandez | |
# Date: 21-November-2018 | |
# | |
# Note: "say" function requires "use v5.10" or higher |
This file contains hidden or 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 Control.Monad | |
set' :: [Integer] | |
set' = [1,2,3] | |
main :: IO () | |
main = do |
This file contains hidden or 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
ruby -rsecurerandom -e 'puts SecureRandom.hex(20)' |
This file contains hidden or 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.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ActionAndFuncDelegates | |
{ | |
using DisplayMessageAction = Action<string, ConsoleColor, int>; |
This file contains hidden or 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
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Microsoft.Azure.KeyVault" version="2.3.2" targetFramework="net472" /> | |
<package id="Microsoft.Azure.KeyVault.WebKey" version="2.0.7" targetFramework="net472" /> | |
<package id="Microsoft.Azure.Services.AppAuthentication" version="1.0.1" targetFramework="net472" /> | |
<package id="Microsoft.Extensions.Configuration" version="2.2.0" targetFramework="net472" /> | |
<package id="Microsoft.Extensions.Configuration.Abstractions" version="2.2.0" targetFramework="net472" /> | |
<package id="Microsoft.Extensions.Configuration.AzureKeyVault" version="2.2.0" targetFramework="net472" /> | |
<package id="Microsoft.Extensions.Configuration.Binder" version="2.2.0" targetFramework="net472" /> | |
<package id="Microsoft.Extensions.Configuration.CommandLine" version="2.2.0" targetFramework="net472" /> |