Windows Vista and Windows 7 can both run versions of the IIS web server. To install it, open the Control Panel and choose Programs and Features; then select Turn Windows features on or off from the left column. Next, select Internet Information Services, and click OK. This will install IIS. After that, you need to set up a site. Again from the Control Panel, select Administrative Tools, then Internet Information Services (IIS) Manager. The easiest way to get things running is to create a project directory inside C:\Inetpub\wwwroot, and then point your browser at that directory: http://192.168.0.1/your-directory.
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
tinymce.PluginManager.add('smartquotes', function(editor) { | |
function convert(e) { | |
rootNodes = editor.dom.select("body > *"); | |
for (var i = 0; i < rootNodes.length; i++) { | |
var el = rootNodes[i]; | |
var contentEditable = editor.dom.getAttrib(el, "contenteditable"); | |
if (contentEditable !== "false") { | |
convertBlock(el); |
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
# frozen_string_literal: true | |
module Tesseract | |
module Transaction | |
module Steps | |
# Executes the step in a background job. Argument is either an ActiveJob | |
# or another Transaction (or anything that implements `#perform_later`. | |
# | |
# If the provided transaction implements a `validate` step, then that | |
# validator will be called on the input before the job is enqueued. This |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
open DIR, "ls -1 |"; | |
while (<DIR>) | |
{ | |
chomp; | |
next if ( -d "$_"); # skip directories |
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
// Generate inline class names for your elements | |
// | |
// <div class="actions inset-vert-small-large"> | |
// <button type="submit">Totes click me!</button> | |
// </div> | |
// | |
// Padding | |
// --------------- | |
// pad-{item} : pad-small (padding: 10px) | |
// pad-vert-{item}-{item + 1} : pad-vert-small-large (padding: 10px 0 40px 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
// Configurables | |
$flexibleGridColumns: 24 !default; | |
$flexibleGridColumnWidth: 30px !default; | |
$flexibleGridGutterWidth: 18px !default; | |
// Full width of a row | |
$flexibleGridRowWidth: ($flexibleGridColumns * $flexibleGridColumnWidth) + ($flexibleGridGutterWidth * ($flexibleGridColumns - 1)); | |
// The width of a column | |
$flexibleGridGridWidth: percentage($flexibleGridColumnWidth / $flexibleGridRowWidth); |
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
// 8-column grid where each columns is 12.5% | |
%grid { | |
display: inline; | |
float: left; | |
clear: none; | |
} | |
%grid-2 { | |
@extend %grid; |
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
// Configurables | |
$flexiColumns: 24 !default; | |
$flexiColumnWidth: 30px !default; | |
$flexiGutterWidth: 18px !default; | |
// Full width of a row | |
$flexiRowWidth: ($flexiColumns * $flexiColumnWidth) + ($flexiGutterWidth * ($flexiColumns - 1)); | |
// The width of a column | |
$flexiGridWidth: percentage($flexiColumnWidth / $flexiRowWidth); |
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() { | |
google.load("books", "0"); | |
var viewerHeight; | |
var headerHeight; | |
var btn = $('#viewerButton'); // Single ref. | |
var viewer = $('#viewerContainer'); | |
function viewerInit() { |
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
<figure class="left"> | |
![Alternate text](/path/to/image.jpg) | |
<footer><p>Caption goes here.</footer> | |
</figure> | |
<figure> | |
![Alternate text](/path/to/image.jpg) | |
<footer><p>Caption goes here.</footer> | |
</figure> |
NewerOlder