Skip to content

Instantly share code, notes, and snippets.

View rahulcn's full-sized avatar

Rahul Chandra rahulcn

View GitHub Profile
@thanksdanny
thanksdanny / LC_CTYPE.txt
Created December 27, 2016 07:46 — forked from jampajeen/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@JoshMock
JoshMock / index.html
Last active July 9, 2016 10:51
Infinite scrolling CompositeView
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css" media="all">
#main {
width: 300px;
height: 400px;
overflow: scroll;
}
@rahulcn
rahulcn / .errors
Created October 28, 2011 04:47
Tests r not passing for create action please help....
Failures:
1) MicropostsController POST 'create' failure should render the home page
Failure/Error: response.should render_template('pages/home')
expecting <"pages/home"> but rendering with <"">
# ./spec/controllers/microposts_controller_spec.rb:38:in `block (4 levels) in <top (required)>'
2) MicropostsController POST 'create' success should create a micropost
Failure/Error: lambda do
count should have been changed by 1, but was changed by 0