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
import requests | |
from pyquery import PyQuery | |
import settings | |
if __name__ == '__main__': | |
# Log in to Alarm.com page | |
payload = { | |
'JavaScriptTest': '1', | |
'cookieTest': '1', |
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
// via https://forums.xamarin.com/discussion/19079/data-binding-for-the-items-source-of-a-picker-control | |
using System; | |
using System.Collections; | |
using Xamarin.Forms; | |
public class BindablePicker : Picker { | |
public BindablePicker() { | |
this.SelectedIndexChanged += OnSelectedIndexChanged; | |
} |
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
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> |
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
function reformatImages() { | |
$(document).ready(function () { | |
$('#div_content_inner_wrapper img').each(function () { | |
if ($(this).width() > $('body').width()) { | |
var newWidth = $('body').width() - 30; | |
$(this).css('width', newWidth); | |
} | |
$(this).css("border", "solid 1px gray"); | |
$(this).css("padding", "2px"); | |
}); |
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
protected void Page_PreInit(object sender, EventArgs e) | |
{ | |
String mobileParam = Request.QueryString["m"] ?? "0"; | |
if (int.Parse(mobileParam) == 1) | |
this.MasterPageFile = "mobile master page"; | |
else | |
{ | |
string u = Request.ServerVariables["HTTP_USER_AGENT"]; | |
Regex b = new Regex(@"android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino", RegexOptions.IgnoreCase | RegexOptions.Multiline); |
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
$(document).ready(function () { | |
$('.links_wrapper a').hover( | |
function () { | |
var hue = Math.floor(Math.random() * 256); | |
switch (hue % 3) { | |
case 0: | |
// orange | |
$(this).css('background', '#FC9E00'); | |
break; | |
case 1: |
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
.Header { | |
text-align: center; | |
} |
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
<link rel="icon" href="~/images/favicon.png"> | |
<!--[if IE]> | |
<link rel="Shortcut Icon" href="~/images/favicon.ico" /> | |
<![endif]--> |
OlderNewer