Skip to content

Instantly share code, notes, and snippets.

@bzerangue
bzerangue / books-of-the-bible.xml
Created August 20, 2011 23:14
A list of the Books of the Bible in XML format.
<?xml version="1.0" encoding="UTF-8"?>
<books-of-the-bible>
<entry handle="01">
<name handle="genesis">Genesis</name>
<testament handle="old-testament" abbreviation="OT">Old Testament</testament>
<chapters>50</chapters>
</entry>
<entry handle="02">
<name handle="exodus">Exodus</name>
<testament handle="old-testament" abbreviation="OT">Old Testament</testament>
@bzerangue
bzerangue / twitter-button.xsl
Created August 31, 2011 17:21
[XSLT] Twitter Button XSL Utility
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Twitter Button: XSL Utility
Created by Zerangue, Brian on 2011-08-31.
Copyright (c) 2011 Brian Zerangue. All rights reserved.
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
@bzerangue
bzerangue / iCal.xsl
Created November 3, 2011 04:54
[XSLT] iCal utility
<?xml version="1.0" encoding="utf-8"?>
<!--
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
X-WR-TIMEZONE;VALUE=TEXT:US/Central
METHOD:PUBLISH
PRODID:-//Park Cities Presbyterian Church\(PCA\)//iCal 1.0//EN
X-WR-CALNAME;VALUE=TEXT:Park Cities Presbyterian Church Events Feed
VERSION:2.0
BEGIN:VEVENT
@bzerangue
bzerangue / mount-windows-network-shares.scpt
Created November 15, 2011 16:44
Mounting Microsoft Windows network drives on Mac OS X
## Mounting Microsoft Windows network drives on Mac OS X
##
## Steps:
## 1) Make sure your machine has already been setup to use Active Directory and that
## you are logged in as an Active Directory user.
## 2) Open Terminal and run the command id (Copy the gid value... example: gid=1005104282)
## 3) Open AppleScript editor and the code below (adjust for your settings)
## 4) To test the mounts, click Run and open Finder to see if they mounted
## 5) If the drives mounted, then save the script as a script
## (so you can edit it in the future if need be)
@bzerangue
bzerangue / convert-number-to-word.rb
Created December 6, 2011 18:26
Convert Number to Word - Sass Function
require 'sass'
## install Linguistics gem, sudo install gem linguistics
require 'linguistics'
Linguistics::use( :en ) # extends Array, String, and Numeric
## this is the linguistics gem,
## instructions on how to use, http://deveiate.org/projects/Linguistics/wiki/English
## 5.en.numwords would output 'five'
@bzerangue
bzerangue / _grid.sass
Created December 6, 2011 23:32
Zurb Foundation Sass Code - More Dynamic, grid will adjust based on the number of columns and gutter size
// .sass syntax
// NOTE: This Sass stylesheet is dependent on the Custom Sass Function, convert-number-to-word,
// which is available here, https://gist.github.com/1439296
/* Arfully Masterminded by ZURB
/* Grid :: This is the mobile-friendly, responsive grid that lets Foundation work much of its magic.
// Using Default Number of Columns that Foundation starts off with, 12 columns
@bzerangue
bzerangue / RegularExpressions.txt
Created January 3, 2012 05:16
Regular Expressions to use
## Regular Expressions
## Removing <font> tag from HTML
</?font\s*[^>]*>?
@bzerangue
bzerangue / php.ini
Created February 17, 2012 18:57
PHP.ini (PHP 5.2.0 and greater)
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@bzerangue
bzerangue / php.ini
Created February 17, 2012 19:00
PHP.ini for Mac OS X Lion (running Litespeed)
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@bzerangue
bzerangue / video-embed.xsl
Created February 24, 2012 20:45
[XSLT] Video Embed XSL Template
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<!--
TO USE TEMPLATE, CALL TEMPLATE LIKE SO...
<xsl:call-template name="video-media">
<xsl:with-param name="width" select="640"/>