Skip to content

Instantly share code, notes, and snippets.

View snoblenet's full-sized avatar

Steven Noble snoblenet

View GitHub Profile
NoMethodError in ReviewsController#preview
undefined method `to_sym' for nil:NilClass
Extracted source (around line #59):
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="fonts.css" rel="stylesheet" type="text/css"/>
<link href="index.css" rel="stylesheet" type="text/css"/>
<title>Testivate Research Gigs</title>
<script></script>
</head>
<body>
body {
margin: 0;
}
#sidebar {
border-right: 1px solid gray;
vertical-align: top;
}
#container {
'use strict';
// Module to control application life.
const electron = require('electron');
// Module to create native browser window.
const app = electron.app;
{
"name": "testivate-research-gigs",
"version": "1.0.0",
"description": "Earn money by testing websites",
"main": "main.js",
"scripts": {
"start": "electron main.js"
},
"keywords": [
"Testivate",
@snoblenet
snoblenet / aremi-location-dictionary.json
Last active April 30, 2017 01:25
Australian (national market) power station location dictionary
AREMI_LOCATION_DICTIONARY = {
'Hallett Power Station': 'SA',
'West Nowra Landfill Gas Power Generation Facility': 'NSW',
'Somerton Power Station': 'Vic',
'Angaston Power Station': 'SA',
'Awaba Power Station': 'NSW',
'Bald Hills Wind Farm': 'Vic',
'Bankstown Sports Club Plant Units ': 'NSW',
'Banimboola Power Station': 'Vic',
'Barcaldine Power Station': 'QLD',

Keybase proof

I hereby claim:

  • I am snoblenet on github.
  • I am snoblenet (https://keybase.io/snoblenet) on keybase.
  • I have a public key ASCMBay3aYDRi7nJy9DUqfqJSWUfgLj4bTBoESEfFojnUgo

To claim this, I am signing this object:

@snoblenet
snoblenet / conflicted.sh
Created October 5, 2017 06:40
Instant Git Merge Practice
#!/bin/bash
rm my-code.txt > /dev/null 2>&1 &
rm -rf .git > /dev/null 2>&1 &
touch my-code.txt
git init
git add my-code.txt
@snoblenet
snoblenet / utils_contract_respected_but_not_enforced.js
Last active September 19, 2018 03:03
The contract between getPrefix() and prefixWord() is respected by the modules but not enforced by the specs
// utils/get_prefix.js
export const getPrefix = () => 'mega';
// utils/prefix_word.js
export const prefixWord = (prefixGetter, wordToPrefix) => prefixGetter() + wordToPrefix;
// spec/utils/get_prefix_spec.js
import getPrefix from '../../utils/get_prefix';
describe('getPrefix()', => {