Skip to content

Instantly share code, notes, and snippets.

View dmundra's full-sized avatar

Daniel Mundra dmundra

View GitHub Profile
@mjordan
mjordan / d6to7_cck_textfield_length_checker.php
Created August 7, 2013 16:49
Script to find Drupal 6 CCK text fields that are longer than 255 characters. Very useful in preparing to upgrade a site to Drupal 7.
<?php
/**
* d6to7_cck_textfield_length_checker.php, a script to find Drupal 6
* CCK text fields that are longer than 255 characters.
*
* Written by Mark Jordan, mjordan@sfu.ca and released into the
* public domain.
*
* Upgrading to Drupal 7 from Drupal 6 instances that use CCK can
@faisalman
faisalman / Age.cs
Last active June 8, 2023 11:40
Calculate Age (Years + Months + Days) in C#
/**
* Calculate Age in C#
* https://gist.github.com/faisalman
*
* Copyright 2012-2013, Faisalman <fyzlman@gmail.com>
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
*/
using System;