Skip to content

Instantly share code, notes, and snippets.

View mralex's full-sized avatar

Alex Roberts mralex

View GitHub Profile
# # Modules: yarn
# Adds settings and tasks for managing Yarn with Mina.
#
# require 'mina/yarn'
# ## Settings
# Any and all of these settings can be overridden in your `deploy.rb`.
# ### yarn_bin
# Sets the yarn path.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
@mralex
mralex / rust-redux-counter.rs
Created February 17, 2016 07:31
Rust Redux counter doodle
#![allow(dead_code)]
// Basic counter
// Most simple initial implementation of Redux
enum ActionTypes {
Increment,
Decrement,
Default,
}
@mralex
mralex / sinatra-memcacher.rb
Created May 5, 2011 05:41
Simple memcached helper for Sinatra.
require 'sinatra/base'
require 'memcached'
module Sinatra
module Memcacher
module Helpers
def cache(key, &block)
return block.call unless options.memcacher_enabled
begin