Skip to content

Instantly share code, notes, and snippets.

View Brikky's full-sized avatar

Brandon Kerr Brikky

  • Meta
  • Oakland, California
View GitHub Profile

Autopilot Email Changes:

CSS

Add this code to the CSS, right after <style>

span.preheader {display: none !important; }

Body Changes

Change the background color of the body to 'Space' as the fallback:

1.Create a folder inside of lib called seeds
2. Put your CSV file example.csv into the lib/seeds folder.
3.

#model needs to already exist in the DB, even if no instances
    require 'csv'

    csv_text = File.read(Rails.root.join('lib', 'seeds', 'file.csv'))
    csv = CSV.parse(csv_text, :headers => true, :encoding => 'UTF-8')
 csv.each do |row|

CLI Linter for Ruby

Lint as a term can also refer more broadly to syntactic discrepancies in general, especially in interpreted languages like JavaScript and Python. For example, modern lint checkers are often used to find code that doesn't correspond to certain style guidelines. They can also be used as simple debuggers for common errors, or hard to find errors such as heisenbugs.

Tells you where and why your code's awful.

Follows the Ruby Style Guide a crowd-sourced set of best practices and style suggestions written and maintained by real-world Rubyists. Rubocop will automatically refactor common mistakes, and point out (but not modify) ones that are code-breaking when they're detected.

@Brikky
Brikky / index.html
Created August 28, 2016 18:40
Tic Tac D'oh!
<div id = "popup"> Would you like to play as X or O? </div>
<div class = "board">
<div class = "loci" id = "1,1"></div>
<div class = "loci" id = "1,2"></div>
<div class = "loci" id = "1,3"></div>
<div class = "loci" id = "2,1"></div>
<div class = "loci" id = "2,2"></div>
<div class = "loci" id = "2,3"></div>
<div class = "loci" id = "3,1"></div>
<div class = "loci" id = "3,2"></div>