Skip to content

Instantly share code, notes, and snippets.

@carolineartz
carolineartz / rspec_model_testing_template.rb
Last active August 29, 2015 14:27 — forked from PWSdelta/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DataViz</title>
<link rel="stylesheet" href="http://fast.fonts.net/cssapi/2ee4c1f6-c49c-4386-89fd-b62b816b15e7.css" />
@carolineartz
carolineartz / index.html
Last active August 29, 2015 14:21
data viz
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DataViz</title>
<link rel="stylesheet" href="http://fast.fonts.net/cssapi/2ee4c1f6-c49c-4386-89fd-b62b816b15e7.css" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DataViz</title>
<link rel="stylesheet" href="http://fast.fonts.net/cssapi/2ee4c1f6-c49c-4386-89fd-b62b816b15e7.css" />
@carolineartz
carolineartz / _.md
Last active August 29, 2015 14:20 — forked from ejfox/_.md
// (c) 2012 Onsi Fakhouri
// Cocktail.js may be freely distributed under the MIT license.
// http://github.com/onsi/cocktail
(function(factory) {
if (typeof require === 'function' && typeof module !== 'undefined' && module.exports) {
module.exports = factory(require('underscore'));
} else if (typeof define === 'function') {
define(['underscore'], factory);
} else {
this.Cocktail = factory(_);
@carolineartz
carolineartz / perlin.js
Created May 8, 2015 18:24
perlin noise algorithm lib for natural randomness
/*
* A speed-improved perlin and simplex noise algorithms for 2D.
*
* Based on example code by Stefan Gustavson ([email protected]).
* Optimisations by Peter Eastman ([email protected]).
* Better rank ordering method by Stefan Gustavson in 2012.
* Converted to Javascript by Joseph Gentle.
*
* Version 2012-03-09
*
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DataViz</title>
<link rel="stylesheet" href="http://fast.fonts.net/cssapi/2ee4c1f6-c49c-4386-89fd-b62b816b15e7.css" />
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1

or

WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.9.0
@carolineartz
carolineartz / A-nifty-collection-of-CSS-text-effects---Outlined-text-shadows.markdown
Created April 3, 2015 19:27
A nifty collection of CSS text effects - Outlined text shadows