Skip to content

Instantly share code, notes, and snippets.

View BrandonLive's full-sized avatar

Brandon Paddock BrandonLive

View GitHub Profile
@BrandonLive
BrandonLive / SuspendHandlingExamples.js
Last active August 21, 2018 17:54
Tweetium suspend handling
/* Copyright (c) 2018 B-side Software
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@BrandonLive
BrandonLive / default.css
Created August 19, 2014 19:07
DManipReproApp
body {
height: 100%;
}
.scrollViewer {
height: 100%;
width: 100%;
overflow:auto;
}
@BrandonLive
BrandonLive / BrandonJS-xhr
Last active January 4, 2016 15:39
BrandonJS.xhr - Provides a helper which mimicks the WinJS.xhr interface but uses WinRT's new HttpClient under the hood if available.
// This file is part of the Brandon Library for JavaScript (BrandonJS)
// Original author: Brandon Paddock, www.brandonlive.com
// Published under Creative Commons Attribution 4.0 International Public License
// http://creativecommons.org/licenses/by/4.0/legalcode
// BrandonJS.xhr
// Provides a helper which mimicks WinJS.xhr but using WinRT's new HttpClient if available.
// If WinRT is not available, it falls back to WinJS.xhr.
// This mimicks enough for common usage scenarios, but you may need to extend it for some cases.