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
/** | |
* Weather Forecast Plugin | |
* Author: Frederick King | |
* | |
**/ | |
(function(window, document, $, undefined) { | |
var api = { | |
load: function(zip, $elem) { | |
var self = this; | |
// XDomain Request for IE8/IE9 :( |
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
/** | |
Load stylesheets dynamically | |
@author: Frederick King <[email protected]> | |
@filename: jquery.fk-themechanger.js | |
**/ | |
( function( win, doc, $, undefined ){ | |
$.fn.themeChanger = function( options ){ | |
var defaults = { themes: [], wrapper: 'li' }, opts = defaults, elem = this[0], $elem = this, link, | |
methods = { |
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( undefined ){ | |
/* Apple Device Webkit Browsers */ | |
var isIdevice = /(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent); | |
if (isIdevice){ | |
document.getElementsByTagName('body')[0].className += ' iphone ipod ipad'; | |
} | |
var isIphone = /(iPhone).*AppleWebKit/i.test(navigator.userAgent); | |
if (isIphone){ | |
document.getElementsByTagName('body')[0].className += ' iphone'; |
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
<%@ Control language="C#" Inherits="CW.Modules.ModuleName.View" Codebehind="View.ascx.cs" AutoEventWireup="true"%> | |
<div class="module"> | |
<asp:BulletedList ID="list" runat="server" /> | |
</div><!-- end .xmp-kit-installer--> |
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
<form action="#action" method="get"> | |
<label For="FirstName">First Name*</Label> | |
<input id="FirstName" Type="text" Name="FirstName" class="required" data-message="Please fill in First name"/> | |
<label For="LastName">Last Name*</Label> | |
<input id="LastName" name="LastName" class="required" data-message="Please fill in Last name"/> | |
<input Type="submit" name="send" /> | |
</form> |
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
:: New Project Batch Script | |
:: @author Frederick King <[email protected]> | |
:: @date 6/21/2012 | |
::---------------------------------------------- | |
:: hide extra stuff | |
@ECHO OFF | |
:: clear the screen | |
cls |
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
Number.prototype.formatMoney = function(c, d, t){ | |
var | |
n = this, | |
c = isNaN(c = Math.abs(c)) ? 2 : c, | |
d = d == undefined ? "," : d, | |
t = t == undefined ? "." : t, | |
s = n < 0 ? "-" : "", | |
i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", | |
j = (j = i.length) > 3 ? j % 3 : 0; | |
return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); |
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 string file_get_contents(string fileName) | |
{ | |
string sContents = string.Empty; | |
if (fileName.ToLower().IndexOf("http:") > -1){ | |
// URL | |
System.Net.WebClient wc = new System.Net.WebClient(); | |
byte[] response = wc.DownloadData(fileName); | |
sContents = System.Text.Encoding.ASCII.GetString(response); | |
} else { |
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
using DotNetNuke.Services.Mail.Mail.SendMail; | |
public void ModuleSendMail(string from, string to, string subject, string body){ | |
Mail.SendMail(from, to, "", subject, body, "", "HTML", "", "", "", "" ); | |
}; |
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
using System; | |
using System.IO; | |
using System.Text; | |
using System.Net; | |
using System.Web; | |
public class PayPalIPN : IHttpHandler | |
{ | |
/** |