touch A
-
Create a Docker machine named
default
, sharingD:\
(only one drive can be specified):
See: http://codingdojo.org/kata/DictionaryReplacer/
using System;
- All years divisible by 400 ARE leap years (so, for example, 2000 was indeed a leap year)
- All years divisible by 100 but not by 400 are NOT leap years (so, for example, 1700, 1800, and 1900 were NOT leap years, NOR will 2100 be a leap year)
- All years divisible by 4 but not by 100 ARE leap years (e.g., 2008, 2012, 2016)
- All years not divisible by 4 are NOT leap years (e.g. 2017, 2018, 2019)
See:
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 argparse | |
import requests | |
def parse_command_line_args(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-t', '--token', required=True) | |
parser.add_argument('-n', '--name', required=True) | |
args = parser.parse_args() | |
return args.token, args.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
#!/bin/bash | |
# See: https://docs.microsoft.com/en-us/sql/linux/tutorial-restore-backup-in-sql-server-container | |
SA_PASSWORD=<YourStrong!Passw0rd> | |
function show_info { | |
tput setaf 6; echo $1; tput sgr 0 | |
} | |
show_info 'Pulling the container image...' |
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.Linq; | |
namespace OptionalParameterUnexpectedBehaviour | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var numbers = Enumerable.Range(1, 5); |
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
param ( | |
[Parameter(Mandatory = $true)] | |
[string] $gitHubUsername | |
) | |
$env:GIT_CONFIG_GLOBAL = '/dev/null' | |
$env:GIT_CONFIG_SYSTEM = '/dev/null' | |
Remove-Item -Recurse -Force $HOME\.dotfiles -ErrorAction Ignore |
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
#!/bin/bash | |
git grep -I --name-only --null $'\xEF\xBB\xBF' | xargs -0 sed -i '1 s/^\xef\xbb\xbf//' |
I hereby claim:
- I am alextercete on github.
- I am alextercete (https://keybase.io/alextercete) on keybase.
- I have a public key whose fingerprint is B1EE F603 C908 103D B8AA BB5D 3391 C83B 444E 6975
To claim this, I am signing this object:
NewerOlder