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

@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 });
};
private async Task ConnectoToSignalR()
{
hubConnection = new HubConnection(App.MobileService.ApplicationUri.AbsoluteUri);
hubConnection.Headers["x-zumo-application"] = App.MobileService.ApplicationKey;
IHubProxy proxy = hubConnection.CreateHubProxy("ChatHub");
await hubConnection.Start();
hubConnection.StateChanged += hubConnection_StateChanged;
public FacebookLogin(Panel container, Page page)
{
_page = page;
//Initialize _webBrowser
_webBrowser = new WebBrowser();
//Get this from the facebook
string appId = "";
//List of all the permissions you want to have access to
//You can get the list of possiblities from here
//http://developers.facebook.com/tools/explorer/
private async void Authenticate()
{
//Facebook Authentication Uri
var facebookUri = "https://www.facebook.com/dialog/oauth";
//Standard redirect uri for desktop/non-web based apps
var redirectUri =
"https://www.facebook.com/connect/login_success.html";
//Place your appclient id here
var clientId = "";
//The type of token that can be requested
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()
using System.Windows;
using Caliburn.Micro;
using System.Collections.Generic;
namespace TT_WP8_Caliburn_2.ViewModels {
public class MainPageViewModel : Screen
{
private string _information;
public string Information
{
<phone:PhoneApplicationPage
x:Class="TT_WP8_Caliburn_2.Views.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro.Platform"
xmlns:viewModels="clr-namespace:TT_WP8_Caliburn_2.ViewModels"
using Microsoft.Phone.Controls;
namespace TT_WP8_Caliburn_1.Views
{
public partial class MainPage : PhoneApplicationPage
{
public MainPage()
{
InitializeComponent();
}