Skip to content

Instantly share code, notes, and snippets.

View alexdunae's full-sized avatar

Alex Dunae alexdunae

View GitHub Profile
@alexdunae
alexdunae / fb-share.coffee
Last active August 29, 2015 14:12
fb-share
initFacebook: ->
facebookLoaded = false
openShareDialog = (url) ->
FB.ui {method: 'feed', link: url}
window.fbAsyncInit = ->
facebookLoaded = true
FB.init({
@alexdunae
alexdunae / gist:1df70618b23e8c0b69da
Created December 23, 2014 20:02
IMG 240 ST3 User Preference
{
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
@alexdunae
alexdunae / Gemfile
Created November 28, 2014 17:31
Gemfile
source 'https://code.stripe.com'
source 'https://rubygems.org'
# core
gem 'rails' , '~> 4.1.2'
gem 'sass-rails' , '~> 4.0.1'
gem 'bootstrap-sass'
gem 'coffee-rails' , '~> 4.0.1'
gem 'haml-rails' , '~> 0.4'
gem 'jquery-rails' , '~> 3.1.1'
{
"folders":
[
{
"file_exclude_patterns":
[
"*.sublime-workspace",
"*.sublime-project",
".gitmodules",
".jshintrc"
@alexdunae
alexdunae / Gemfile
Last active April 19, 2019 06:55
Guard + sass + autoprefixer
source 'https://rubygems.org/'
gem 'guard'
gem 'guard-sass', git: 'git@github.com:alexdunae/guard-sass.git'
gem 'autoprefixer-rails'
[client]
user=root
password=
[mysql]
user=root
password=
[mysqldump]
user=root
@alexdunae
alexdunae / monit.conf
Created June 25, 2014 23:32
Get Monit notifications via SMS
check file nginx.pid with path /var/run/nginx.pid
if changed timestamp then exec "/usr/local/bin/monit2twilio" as uid root and gid root
// heavily inspired https://github.com/alphagov/static/blob/master/app/assets/javascripts/search.js.erb
$.extend($.ui.autocomplete.prototype, {
_renderMenu: function( ul, items ) {
var that = this,
currentCategory = "";
$.each( items, function( index, item ) {
if ( item.category && item.category != currentCategory ) {
ul.append( "<li class='ui-autocomplete-category'><span>" + item.category + "</span></li>" );
currentCategory = item.category;
}
@alexdunae
alexdunae / Gemfile
Last active August 29, 2015 14:01
Guard w/ WordPress
source 'https://rubygems.org/'
gem 'guard'
gem 'guard-jammit'
gem 'guard-sass'
gem 'guard-coffeescript'