First install Composer, then:
$ composer create-project laravel/laravel <project-name>
After that we can start a webserver, and test the default index page:
<rule name="san aspx"> | |
<!--Removes the .aspx extension for all pages.--> | |
<match url="(.*)" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="{R:1}.aspx" /> | |
</rule> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 0; } |
First install Composer, then:
$ composer create-project laravel/laravel <project-name>
After that we can start a webserver, and test the default index page:
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
;(function(geolocation){ | |
if (geolocation) return; | |
var cache; |
<?php | |
add_image_size('thumbnail-bw', 400, 0, false); | |
add_filter('wp_generate_attachment_metadata','bw_images_filter'); | |
function bw_images_filter($meta) { | |
$file = wp_upload_dir(); | |
$file = trailingslashit($file['path']).$meta['sizes']['thumbnail-bw']['file']; | |
list($orig_w, $orig_h, $orig_type) = @getimagesize($file); | |
$image = wp_load_image($file); | |
imagefilter($image, IMG_FILTER_GRAYSCALE); |
<script> | |
var resources = <%=Resources%>; | |
var viewModel = {localize:resources}; | |
ko.applyBindings(viewModel); | |
</script> | |
<span data-bind="text:localize.Message"></span> | |
<span data-bind="text:localize.Message_Help"></span> | |
<?xml version="1.0" encoding="windows-1252"?> | |
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<!-- Variable used to fine DNN Manifest File --> | |
<DNNFileName>$(AssemblyName)</DNNFileName> | |
<!--Variable used to create the install and source zip file--> | |
<PackageName>$(AssemblyName)</PackageName> | |
<!-- Variable used to find the location of the DotNetNuke installation bin folder. Used to get the projects binary DLL. | |
Assumes your your project will be stored in a company/module folder. | |
Ex: DesktopModules/CompanyName/ModuleName/--> |
var to12Hr = function(n, r /* round to nearest r minutes */) { | |
if (!n || n >= 24) return '12:00 AM'; | |
var m = (Math.round(n%1*(r = (r ? 60/r : 60)))/r)*60; | |
return ((n = (m>59 ? n+1 : n))>=13 ? (n|0)-12 : n|0) + ':' + (m>9 ? (m>59 ? '00' : m) : '0'+m) + (n>=12 && m<60 ? ' PM' : ' AM'); | |
} | |
// to12Hr(6.5) => "6:30 AM" | |
// to12Hr(13.19) => "1:11 PM" | |
// to12Hr(13.19, 15) => "1:15 PM" (rounds to 15 mins) |
<%@ Page Language="C#" %> | |
<script runat="server"> | |
void Page_Load(object sender, System.EventArgs e) | |
{ | |
DotNetNuke.Entities.Users.UserInfo uInfo = | |
DotNetNuke.Entities.Users.UserController.GetUserById(0, 1); | |
if (uInfo != null) | |
{ | |
string password = |
Choose a ticket class: <select id="tickets"></select> | |
<p id="ticketOutput"></p> | |
<script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
{{if chosenTicket}} | |
You have chosen <b>${ chosenTicket().name }</b> | |
($${ chosenTicket().price }) | |
<button data-bind="click: resetTicket">Clear</button> | |
{{/if}} |