Skip to content

Instantly share code, notes, and snippets.

app/views/layouts/_header.html.erb:20:in `_app_views_layouts__header_html_erb___4386213289422339659_69830713720980'
app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb__1084767714596196780_35187380'
Showing /home/dwayne/website/portfolio/app/views/layouts/application.html.erb where line #5 raised:
File to import not found or unreadable: font-awesome.
Load paths:
/home/dwayne/website/portfolio/app/assets/images
/home/dwayne/website/portfolio/app/assets/javascripts
/home/dwayne/website/portfolio/app/assets/stylesheets
/home/dwayne/website/portfolio/vendor/assets/javascripts
/home/dwayne/website/portfolio/vendor/assets/stylesheets
/home/dwayne/.rvm/gems/ruby-2.2.1/gems/turbolinks-2.5.3/lib/assets/javascripts
@Zilenc3
Zilenc3 / output
Last active August 29, 2015 14:24
Pointers
a(Should be 1): 1 b(Should be 2): 2
Testing foo after compare(Should be 2): 3
Note cout<< "Inside if(Should be 2): " << *foo <<endl;
does not execute. Not sure why.
@Zilenc3
Zilenc3 / Errors
Created June 30, 2015 22:06
expected primary-expression before ‘*’ token
||=== Build: Debug in interviewQuestions (compiler: GNU GCC Compiler) ===|
xxxxxxxxxxxxxxxxxxxxxx/main.cpp||In function ‘int main()’:|
xxxxxxxxxxxxxxxxxxxxxx/main.cpp|165|error: expected primary-expression before ‘*’ token|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
@Zilenc3
Zilenc3 / Error
Created June 28, 2015 14:41
Error in adding
Error
SQL query:
ADD COLUMN 'id'INT( 10 ) UNSIGNED PRIMARY KEY AUTO_INCREMENT ;
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add column 'id' int(10) unsigned primary KEY AUTO_INCREMENT' at line 1
@Zilenc3
Zilenc3 / Player.h
Last active August 29, 2015 14:23
Constructors
#ifndef PLAYER_H
#define PLAYER_H
class Player
{
public:
Player(int age, int money);
virtual ~Player();
protected:
@Zilenc3
Zilenc3 / Error
Last active August 29, 2015 14:23
Capybara: Element not found
bundle exec rspec spec/features/signing_up_spec.rb
F
Failures:
1) Users can sign up when providing valid details
Failure/Error: click_link "Sign up"
Capybara::ElementNotFound:
Unable to find link "Sign up"
# /home/dwayne/.rvm/gems/ruby-2.2.1/gems/capybara-2.4.4/lib/capybara/node/finders.rb:41:in `block in find'
@Zilenc3
Zilenc3 / Error
Last active August 29, 2015 14:22
Undefined variable: "$screen-sm-min".
Sass::SyntaxError in Projects#index
Showing /home/sss/GitHub/ticketee/app/views/layouts/application.html.erb where line #12 raised:
Undefined variable: "$screen-sm-min".
Extracted source (around line #2):
1
2 @media(min-width: $screen-sm-min) {
3 header {
4 h1, h2, h3, h4, h5, h6 {
@Zilenc3
Zilenc3 / application.css.scss
Created June 12, 2015 21:30
Undefined var $screen-sm-min)
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
@Zilenc3
Zilenc3 / prime.js
Created June 10, 2015 03:10
Unexpected identifier isPrime (ln50)
//Writing first 100 primes
// isPrime and leastFactor taken from
//http://www.javascripter.net/faq/numberisprime.htm
var fs = require('fs');
var outfile = "primes.txt";