Skip to content

Instantly share code, notes, and snippets.

View expires.json
{
"type": "warning",
"html": true,
"message": "<i class=\"fa fa-warning\"></i> The message to display in <br><br> <strong>bold!!!</strong>",
"expires_at": 1526374267080
}
@ianmurrays
ianmurrays / fill-column-indicator.el
Created Dec 11, 2017
~/.emacs.d/elpa/fill-column-indicator-20170905.1008/fill-column-indicator.el
View fill-column-indicator.el
;;; fill-column-indicator.el --- Graphically indicate the fill column
;; Copyright (c) 2011-2014 Alp Aker
;; Author: Alp Aker <alp.tekin.aker@gmail.com>
;; Version: 1.89
;; Keywords: convenience
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
View 01.ant
2014-09-22 16:05:54 -0300
ant
clean
Buildfile: /private/tmp/closure-compiler-SlWtTA/closure-compiler-maven-release-v20140625/build.xml
clean:
BUILD SUCCESSFUL
View keybase.md

Keybase proof

I hereby claim:

  • I am ianmurrays on github.
  • I am ianmurrays (https://keybase.io/ianmurrays) on keybase.
  • I have a public key whose fingerprint is B767 8160 D20B C7D8 7167 5778 B74A DE12 62F5 0455

To claim this, I am signing this object:

@ianmurrays
ianmurrays / model_caching.coffee
Created Nov 15, 2012 — forked from rstacruz/model_caching.coffee
Backbone.js model caching
View model_caching.coffee
# ## Backbone model caching
# This is a simple solution to the problem "how do I make less requests to
# my server?".
#
# Whenever you need a model instance, this will check first if the same thing
# has been fetched before, and gives you the same instance instead of fetching
# the same data from the server again.
#
# Reusing the same instance also has the great side-effect of making your
# model changeable from one part of your code, with your changes being available
@ianmurrays
ianmurrays / devise.es.yml
Created Mar 19, 2012
Devise 2.0 Spanish Locale
View devise.es.yml
es:
errors:
messages:
expired: "ha expirado, por favor pide una nueva"
not_found: "no encontrado"
already_confirmed: "ya fue confirmada. Intenta ingresar."
not_locked: "no ha sido bloqueada"
not_saved:
one: "Ha habido 1 error:"
other: "Han habido %{count} errores:"
@ianmurrays
ianmurrays / faye.ru
Created Mar 8, 2012
Faye Private_Pub Config
View faye.ru
# Run with: rackup faye.ru -s thin -E production
require "yaml"
require "faye"
begin
require "private_pub"
rescue LoadError
require "bundler/setup"
require "private_pub"
end
@ianmurrays
ianmurrays / git-blame
Created Nov 11, 2011
git blame doesn't lie
View git-blame
6c71ff4d app/views/sections/show_excel.html.haml (Gonzalo S 2011-10-12 18:48:22 -0300 14) .table-container
c69c56a5 app/views/sections/show_excel.html.haml (Gonzalo S 2011-11-10 20:31:52 -0300 15) 97198046
@ianmurrays
ianmurrays / apache-site.conf
Created Oct 26, 2011
nginx as apache proxy
View apache-site.conf
NameVirtualHost 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
ServerAdmin webmaster@example.org
ServerName domain.example.org
ServerAlias www.domain.example.org
DocumentRoot /path/to/docroot
ErrorLog /path/to/docroot/logs/error.log # Optional
CustomLog /path/to/docroot/logs/access.log combined # Optional
RPAFenable On
RPAFsethostname On
@ianmurrays
ianmurrays / .gitconfig
Created Oct 5, 2011
Git Configuration
View .gitconfig
[color]
ui = true
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p