Skip to content

Instantly share code, notes, and snippets.

@jgandt
jgandt / slack_dark_theme.css
Created November 9, 2018 21:03
Slack Dark Theme Stylesheet
/*
Copyright 2017 Bryan Keller (https://github.com/widget-)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@jgandt
jgandt / css_grid.css
Last active September 21, 2017 14:22
Css Grid Lunch & Learn
body {
margin: 10;
}
.newf {
border: 10px gray solid;
height: 400px;
width: 400px;
background-size: 400px;
}
@jgandt
jgandt / README
Created February 17, 2012 21:43
module ObjectifyFromHash
# Using this as a mix in we are able to maintain a meaningful class structure while exposing the hash keys as viable and visable methods.
# I had a lot more I wanted to do in my FileCopyTask, and I didn't feel that the objectification logic was correctly placed in my class.
# The really neat part about this is that you could extend an individual instance of an object and objectify it in place.
# You could do all sorts of other crazy things with definition of reader/writer/accessor permissions in the objectify call.
# This may be entirely useless and silly but I think it is a slightly better option than returning an object of the class Hashit/ObjectifyFromHash
OpenStruct is a viable alternative. However, I was unable to find a way to use the Plain class as a mixin.
@jgandt
jgandt / ctags_vim_paths_gemfile.rb
Created January 31, 2012 15:26 — forked from andyl/ctags_vim_paths_gemfile.rb
Generates Ctags and Vim Paths from Gemfile.lock
#!/usr/bin/ruby
require 'rubygems'
require 'bundler'
=begin
This script was written to incorporate Bundler and Gemfile.lock into
Vim's tag and file-finding tools.
=end
# This code generates ctags. If a Gemfile.lock is found
@jgandt
jgandt / ctags_vim_paths_gemfile.rb
Created January 31, 2012 15:25 — forked from andyl/ctags_vim_paths_gemfile.rb
Generates Ctags and Vim Paths from Gemfile.lock
#!/usr/bin/ruby
require 'rubygems'
require 'bundler'
=begin
This script was written to incorporate Bundler and Gemfile.lock into
Vim's tag and file-finding tools.
=end
# This code generates ctags. If a Gemfile.lock is found