Skip to content

Instantly share code, notes, and snippets.

@carolineartz
carolineartz / 1layout_notes.md
Last active August 15, 2018 21:16
example for Doraly

Hey Doraly, I know we didn't have a chance to meet during office hours, so I wanted to see if I could be of some help anyway. I got your code from github and have some ideas:

  • add normalize.css-link to read more about what that does (included the css file here)
  • add a simple, responsive grid system. See this tutorial for explanation. I modified the @media breakpoint and included the css file here. this is what the grid system can accomplish:
@carolineartz
carolineartz / dmarc_submit.rb
Created March 12, 2015 21:00
ruby script for submitting uris to easysol.net/explorer for dmarc preparedness
require 'uri'
require 'open-uri'
require "net/http"
require 'csv'
require 'nokogiri'
require 'mechanize'
CSV.foreach("urls.csv") do |line|
@carolineartz
carolineartz / index.html
Last active August 29, 2015 14:16
Understanding CSS Grid Systems // A Basic grid system for the article // Understanding CSS Grid Systems on SitePoint: // http://www.sitepoint.com/understanding-css-grid-systems
<div class="row">
<div class="column column-4"></div>
<div class="column column-4"></div>
<div class="column column-4"></div>
</div>
<div class="row">
<div class="column column-2"></div>
<div class="column column-4"></div>
<div class="column column-4"></div>
<div class="column column-2"></div>
@carolineartz
carolineartz / Angular-1.2-and-Directives-for-Showing-Hiding-Content.markdown
Created March 5, 2015 03:38
Angular 1.2 and Directives for Showing/Hiding Content

Angular 1.2 and Directives for Showing/Hiding Content

This demo provides a live opportunity to compare/contrast Angular's differing approaches to displaying conditional content. Additional details inline in the pen...

A Pen by Christian Lilley on CodePen.

License.

#
#Bingo Checker Module
#
module BingoWinChecker
BINGO = ['X', 'X', 'X', 'X', 'X']
class << self
attr_accessor :bingo_board
end
require 'terminal-table'
require_relative 'bingo_checker'
class BingoBoard
attr_reader :bingo_board
LETTERS = %w(B I N G O)
def initialize
@bingo_board = (1..75).each_slice(15).each_with_object([]) do |range, board|
board << range.sample(5)
@carolineartz
carolineartz / responsify_reset.css
Created February 12, 2015 00:05
raw responsify reset for import
/* CSS file generated by Responsify */
/* Columns: 5, Gutter Width: 1.5, Breakpoints: 480 */
html, body, main, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
@carolineartz
carolineartz / .vimrc
Created February 6, 2015 17:44
.vimrc
" Load plugins that come with vim
runtime macros/matchit.vim
" Pathogen and basic shit
runtime bundle/pathogen/autoload/pathogen.vim
call pathogen#infect()
call pathogen#helptags()
syntax enable
filetype plugin indent on
/*
* Bootstrap Auto-Hiding Navbar - v1.0.0
* An extension for Bootstrap's fixed navbar which hides the navbar while the page is scrolling downwards and shows it the other way. The plugin is able to show/hide the navbar programmatically as well.
* http://www.virtuosoft.eu/code/bootstrap-autohidingnavbar/
*
* Made by István Ujj-Mészáros
* Under Apache License v2.0 License
*/
!function(a,b,c,d){function e(b,c){this.element=a(b),this.settings=a.extend({},w,c),this._defaults=w,this._name=m,this.init()}function f(b){v&&(b.element.addClass("navbar-hidden").animate({top:-b.element.height()},{queue:!1,duration:b.settings.animationDuration}),a(".dropdown.open .dropdown-toggle",b.element).dropdown("toggle"),v=!1)}function g(a){v||(a.element.removeClass("navbar-hidden").animate({top:0},{queue:!1,duration:a.settings.animationDuration}),v=!0)}function h(a){var b=n.scrollTop(),c=b-t;if(t=b,0>c){if(v)return;(a.settings.showOnUpscroll||l>=b)&&g(a)}else if(c>0){if(!v)return void(a.settings.showOnBottom&&b+u===o.hei
@carolineartz
carolineartz / _base.scss
Last active August 29, 2015 14:13
Bootstrap-Sass project import structure with custom variables and style overrides.
// any variables needed before bootstrap import:
/*
* bootstrap import
*/
@import "bootstrap_custom";
$icon-font-path: '../../../bower_components/bootstrap-sass-official/assets/fonts/bootstrap/';
/*