Skip to content

Instantly share code, notes, and snippets.

View DavidHernandez's full-sized avatar
📎

David Hernández DavidHernandez

📎
View GitHub Profile
@natec425
natec425 / itemDecode.elm
Created October 26, 2016 15:08
Elm - Json.Decode reuse with Extensible Records
module Scratch exposing (..)
import Json.Decode exposing (..)
type alias Item a =
{ a
| field1 : String
, field2 : String
, field3 : String
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/