View sftp-pod.yml
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 |
View sftp-service.yml
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 |
View ubuntu-pod.yml
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 |
View csharp7_sample.cs
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 |
View AbstractLinker
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) | |
{ |
View prepare-commit.sh
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 |
View index.html
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> |
View EmbeddedImageHelper.cs
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 | |
{ |