Skip to content

Instantly share code, notes, and snippets.

View andyraddatz's full-sized avatar

λndy andyraddatz

  • Stretch Consulting
  • Minnesota
View GitHub Profile
@andyraddatz
andyraddatz / ASCIIStringExtensions.cs
Last active December 3, 2025 19:12
C# String extension method to fold diacritics to ASCII characters
// IMPORTANT
using System.Collections.Generic;
using System.Text;
// This gist was created thanks to this comment from Alexander on StackOverflow:
// https://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net#comment86833005_34272324
// This is a derivative work. The logic of this function comes from a switch statement found inside the
// Lucene.Net library. The documentation of the conversion of characters is quite impressive
// (thank you @NightOwl888 and @synhershko !!!):
@martinisoft
martinisoft / tpl-cukeapp.rb
Created October 24, 2010 04:35
Rails 3, RSpec, Cucumber, Factory_Girl, HAML, SASS, Devise, Formtastic Template
## Rails App Template
## Updated for Rails 3.0.1
## Created on 10/23/10
## Updated on 11/4/10
## Run using $ rails new [appname] -JT -m tpl-cukeapp.rb
## Gems
# Warden and Devise for security
gem 'warden', '0.10.7'