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.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Windows.Media.Imaging; | |
namespace LightSwitchApplication.Helpers | |
{ | |
public class ImageHelper | |
{ |
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> | |
<title>Rectangles</title> | |
</head> | |
<body> | |
<h1>Find rectangles in images!</h1> | |
<button id="singleRectangle">Find single rectangle coordinates</button> |
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
# Disclaimer: Commits should have the following format | |
# <PROJNAME>: <DESCRIPTION> | |
# Example: | |
# JIRA-450: My description | |
# Following code will substring the JIRA-450 and append it as last value of the `window.version` variable, replacing the `SAMPLE` | |
# This is just a sample, it is not recommended to do such mission, versions should be handled by CI and should follow the SEMVER specification: http://semver.org/ | |
# Should add validation to ensure one is committing following the conventions | |
# Git hooks documentation https://git-scm.com/docs/githooks |
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
namespace Training.Misc | |
{ | |
using System; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
public abstract class AbstractLinker | |
{ | |
protected MethodInfo GetMethodInfo<T>(Expression<Func<T, Delegate>> expression) | |
{ |
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
int.TryParse("5", out int value); | |
// Use value |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ubuntu1 | |
labels: | |
app: ubuntu1 | |
spec: | |
containers: | |
- name: ubuntu1 | |
image: ubuntu |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: sftp-service | |
spec: | |
selector: | |
app: sftp-server | |
ports: | |
- protocol: TCP | |
port: 22 |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: sftp | |
labels: | |
app: sftp-server | |
spec: | |
containers: | |
- name: sftp-server-demo | |
image: atmoz/sftp |
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
def main(cli_args: List[str] = None) -> int: | |
""" | |
`cli_args` makes it possible to call this function command-line-style | |
from other Python code without touching sys.argv. | |
""" | |
try: | |
# Parsing with `argparse` and additional processing | |
# is usually lenghty enough to extract into separate functions. | |
raw_config = _parse_cli( | |
sys.argv[1:] if cli_args is None else cli_args) |