Skip to content

Instantly share code, notes, and snippets.

View lawwantsin's full-sized avatar
🏠
Working from home

Lawrence Whiteside lawwantsin

🏠
Working from home
View GitHub Profile

TodoMVC React

SCSS Style Guide

###File Structure

This is an example of a component named quote.

app/assets/stylesheets/
├── application.scss
@lawwantsin
lawwantsin / custom_file_store.rb
Created October 31, 2015 04:35 — forked from bradpauly/custom_file_store.rb
simple file store for rails sessions
module ActionDispatch
module Session
class CustomFileStore < ActionDispatch::Session::AbstractStore
def get_session(env, session_id)
session_data = {}
session_id ||= generate_sid
File.open(tmp_file(session_id),'r') do |f|
data = f.read
session_data = ::Marshal.load(data) unless data.empty?
end rescue nil