Skip to content

Instantly share code, notes, and snippets.

View ChaseFlorell's full-sized avatar
🇨🇦

Chase Florell ChaseFlorell

🇨🇦
View GitHub Profile
@ChaseFlorell
ChaseFlorell / snippet.cs
Created April 12, 2014 04:38
How to prevent icon slide on Right navigation drawer
public override void OnDrawerSlide(View drawerView, float slideOffset)
{
if (null != DrawerSlide)
DrawerSlide(this, new ActionBarDrawerEventArgs
{
DrawerView = drawerView,
SlideOffset = slideOffset
});
// only slide the left nav item
@ChaseFlorell
ChaseFlorell / DrawerToggler.cs
Last active August 29, 2015 13:59
An Android Navigation Drawer that supports single and dual sliding drawers.
using System;
using Android.App;
using Android.Support.V4.App;
using Android.Support.V4.Widget;
using Android.Views;
namespace FutureState.BreathingRoom.Droid.Ui
{
public class ActionBarDrawerEventArgs : EventArgs
{
@ChaseFlorell
ChaseFlorell / FragmentActivityBase.cs
Created May 7, 2014 13:50
Just trying to figure out how to better structure a FragmentActivity in order to reduce "noise" in the RootView
using System;
using Cirrious.CrossCore;
using Cirrious.MvvmCross.Droid.Fragging;
using Cirrious.MvvmCross.Droid.Fragging.Fragments;
using Cirrious.MvvmCross.ViewModels;
namespace FutureState.BreathingRoom.Droid.Ui.Views
{
internal class FragmentActivityBase : MvxFragmentActivity
{
@ChaseFlorell
ChaseFlorell / BindableMarkdownView.cs
Last active February 9, 2016 23:47
Bindable Markdown View for use with MvvmCross (Mvx) on the Android and iOS platforms.
using System;
using Android.Content;
using Android.Util;
using Android.Webkit;
using MarkdownDeep;
namespace FutureState.Droid.Ui.Controls
{
public class BindalbeMarkdownView : WebView
{
using System;
using Cirrious.MvvmCross.Binding.Touch.Views;
using Cirrious.MvvmCross.Touch.Views.Presenters;
using FutureState.BreathingRoom.Touch.Ui.Controllers;
using FutureState.BreathingRoom.Touch.Ui.Fragments;
using MonoTouch.UIKit;
using SlidingPanels.Lib.PanelContainers;
namespace FutureState.BreathingRoom.Touch.Ui.Presenters
{
@ChaseFlorell
ChaseFlorell / CustomPresenter.cs
Created May 23, 2014 03:51
Custom Presenter not showing appropriate ViewModel when calling `ViewModel.ShowViewModel<MyViewModel>();`
using System;
using Cirrious.CrossCore;
using Cirrious.MvvmCross.Binding.Touch.Views;
using Cirrious.MvvmCross.Touch.Views;
using Cirrious.MvvmCross.Touch.Views.Presenters;
using Cirrious.MvvmCross.ViewModels;
using FutureState.AppCore.ViewModels;
using FutureState.BreathingRoom.Touch.Ui.Controllers;
using FutureState.BreathingRoom.Touch.Ui.Fragments;
using MonoTouch.UIKit;
@ChaseFlorell
ChaseFlorell / App.cs
Last active August 29, 2015 14:04
This Gist is in response to the following Xamarin.Forms question: http://forums.xamarin.com/discussion/comment/68992/#Comment_68992
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace perfomance
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace FutureState.AppCore.Pages
{
public class SegmentTab : ContentPage
{
private Grid _grid;
@ChaseFlorell
ChaseFlorell / Namespace.js
Created October 28, 2014 14:48
Namespacing Javascript
// self executing function keeps code off of the global namespace.
(function() {
// initialize the namespace at the top of your very first code file.
var ns = {};
// begin declaring some classes
// This class is using the OBJECT LITERAL pattern
ns.Class1 = {
@ChaseFlorell
ChaseFlorell / Deploy-TeamCityBuildToOctopus.ps1
Last active September 5, 2020 08:48
a script for TeamCity to get git commits and pass them along to Octopus Deploy
# credit for getting me going in the right direction
# http://blogs.lessthandot.com/index.php/uncategorized/access-git-commits-during-a-teamcity-build-using-powershell/
# these properties should be entered into your configuration parameters section
$project = "%Octopus.Project%"
$deployTo = "%Octopus.DefaultEnvironment%"
$buildVersion = "%BuildVersion%"
$octopusApiKey = "%Octopus.BuildDeployBot.APIKey%"
$octopusServer = "%Octopus.Server.Url%"