Skip to content

Instantly share code, notes, and snippets.

View evanniedojadlo's full-sized avatar
💭
Stone in Focus 🗿

Evan Niedojadło evanniedojadlo

💭
Stone in Focus 🗿
View GitHub Profile
@evanniedojadlo
evanniedojadlo / gist:937c9a0e743730392953
Created June 22, 2015 06:13
Firefox quit unexpectedly - Problem Report for Firefox
Process: firefox-bin [88202]
Path: /Applications/Firefox.app/Contents/MacOS/firefox-bin
Identifier: org.mozilla.firefox
Version: 38.0.5 (3815.5.25)
Code Type: X86-64 (Native)
Parent Process: ruby [88201]
Responsible: iTerm [12157]
User ID: 501
Date/Time: 2015-06-22 01:09:52.218 -0500
@evanniedojadlo
evanniedojadlo / Multi-Image Uploader
Created September 5, 2014 19:48
Quick image uploader (no styles added)
<html>
<head>
<title>Test Image Uploader</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script id="angularScript" src="//ajax.googleapis.com/ajax/libs/angular"></script>
<script>
$(document).ready(init);
function init(){
console.log('Document has been loaded');
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
@evanniedojadlo
evanniedojadlo / Codecademy Bug
Created May 18, 2014 07:25
JS function that is causing Codecademy to output three different values
//This function is returning three different outputs within Codecademy
var orangeCost = function(price) {
console.log(price * 5);
}
orangeCost(2);
@evanniedojadlo
evanniedojadlo / gist:8295360
Created January 7, 2014 06:20
Message returned after I performed a rake db:drop, rake db:create, rake db:migrate, and the rake db:seed
Evans-MacBook-Air:wikiful RAI$ rake db:seed
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
@evanniedojadlo
evanniedojadlo / gist:8293968
Last active January 2, 2016 10:59
Error I am returning when attempting a rake db:seed or a rake db:reset
Evans-MacBook-Air:wikiful RAI$ rake db:reset
-- enable_extension("plpgsql")
-> 0.0452s
-- create_table("article_categories", {:force=>true})
-> 0.0115s
-- create_table("articles", {:force=>true})
-> 0.0083s
-- create_table("categories", {:force=>true})
-> 0.0083s
-- initialize_schema_migrations_table()
@evanniedojadlo
evanniedojadlo / ide_export.rb
Created July 17, 2013 03:48
A brief example of how to convert exported Selenium IDE tests into runnable tests with the Sauce platform.
# Exported as Test::Unit from Selenium IDE
require "selenium-webdriver"
gem "test-unit"
require "test/unit"
class Example2 < Test::Unit::TestCase
def setup
@driver = Selenium::WebDriver.for :firefox