Skip to content

Instantly share code, notes, and snippets.

View Tapanila's full-sized avatar

Teemu Tapanila Tapanila

View GitHub Profile
@Tapanila
Tapanila / code-of-conduct.md
Last active November 7, 2023 07:59
Azure & Friends - Code of Conduct

Azure & Friends - Code of Conduct

Our community welcomes participants from around the world with different experiences, unique perspectives, and great ideas to share. Organizers of this group are from various companies which emphasizes the community and sharing aspect. Organizers are committed to providing a friendly, safe, and welcoming environment for all, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, sexual identity and orientation, or other such characteristics.

Our Standards

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"hostingPlanName": {
"type": "string",
"defaultValue": "nordcloud-python-app-wap"
},
"webSiteName": {
"type": "string",
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"hostingPlanName": {
"type": "string",
"defaultValue": "nordcloud-python-app-wap"
},
"webSiteName": {
"type": "string",
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"inputArray": {
"type": "array",
"metadata": {
"description": "string array of ip addresses"
}
}
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [],
"outputs": {
"test": {
"type": "string",
"value": "[reference(ResourceId('Microsoft.Web/sites', 'hello-asl-7cyvgt4ucnwt6'), '2018-02-01', 'Full').identity.principalId]"
@Tapanila
Tapanila / keyvault.json
Last active June 25, 2019 16:31
ARM Gist Testing
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"keyvaultName": {
"type": "string"
},
"location": {
"type": "string"
},
if (clicknumber %2 == 1) { //första klicket.
firstclickx = x;
firstclicky = y;
tempIm = getposition(i,j);
board[x][y] = tempIm;
this.setChanged();
this.notifyObservers();
return; // den går tillbaka till programmet så att du kan klicka igen
}
@Tapanila
Tapanila / gist:ad7d15f33d47eb081a06
Created December 9, 2014 13:55
BindableRichTextbox
using System;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
namespace Slush.Helpers
{
public class BindableRichTextBox : RichTextBox
exports.post = function(request, response) {
// Use "request.service" to access features of your mobile service, e.g.:
// var tables = request.service.tables;
// var push = request.service.push;
response.send(statusCodes.OK, { message : request.query });
};
using System;
using System.Net.Http;
using Newtonsoft.Json;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace TapanilaBlogJSON
{
public sealed partial class MainPage : Page
{
public MainPage()