Skip to content

Instantly share code, notes, and snippets.

View shadow-fox's full-sized avatar

Pranaya Behera shadow-fox

  • Bangalore,India
View GitHub Profile
Environment:
Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.4
Python Version: 2.7.1
Installed Applications:
('django.contrib.auth',
@shadow-fox
shadow-fox / gist:3027744
Created July 1, 2012 09:55
Traceback with coding
Environment:
Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.4
Python Version: 2.7.1
Installed Applications:
('django.contrib.auth',
npm ERR! Error: EACCES, symlink '../lib/node_modules/npm/bin/npm-cli.js'
npm ERR! { [Error: EACCES, symlink '../lib/node_modules/npm/bin/npm-cli.js']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '../lib/node_modules/npm/bin/npm-cli.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 2.6.38-15-generic-pae
npm ERR! command "/usr/bin/node" "/tmp/npm.25935/package/cli.js" "install" "-gf"
@shadow-fox
shadow-fox / loginout
Created August 17, 2012 12:36
loginout
<div class="quick_loginout">
<li class="first"><?php wp_loginout(); ?></li>
<?php wp_register('<li class="last">'); ?>
</div>
@shadow-fox
shadow-fox / Problem Div
Created September 22, 2012 06:39
HTML5 Structure
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>atCampus Campus at your Fingertips</title>
<meta name="description" content="Campus at your Fingertips.">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css">
</head>
@shadow-fox
shadow-fox / url.py
Created September 29, 2012 18:52
hello not defined
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/hello/
Django Version: 1.4.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
@shadow-fox
shadow-fox / Header.php
Created October 26, 2012 08:09
Menu Wordpress
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
@shadow-fox
shadow-fox / log
Created October 31, 2012 21:58
Heroku Deployment Error
shadowfax@shadowfax ~/Development/railscore/first_app $ heroku create
Creating quiet-inlet-3310... done, stack is cedar
http://quiet-inlet-3310.herokuapp.com/ | git@heroku.com:quiet-inlet-3310.git
Git remote heroku added
shadowfax@shadowfax ~/Development/railscore/first_app $ git push heroku master
The authenticity of host 'heroku.com (50.19.85.132)' can't be established.
RSA key fingerprint is xxxxxxxxx
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,50.19.85.132' (RSA) to the list of known hosts.
Counting objects: 64, done.
@shadow-fox
shadow-fox / gemfile
Created October 31, 2012 22:13
gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.8'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development do
gem 'sqlite3', '1.3.5'
end
@shadow-fox
shadow-fox / 1.sql
Created November 3, 2012 14:35
1075 error: Incorrect table definition; there can be only one auto column and it must be defined as a key
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `contacts`;
CREATE TABLE `contacts` (
`sl_no` int(11) NOT NULL auto_increment,
`date` varchar(255) character set latin1 default NULL,
`name` varchar(255) character set latin1 default NULL,
`phone` varchar(255) character set latin1 default NULL,
`email` varchar(255) character set latin1 default NULL,
`address` varchar(255) character set latin1 default NULL,
`city` varchar(255) character set latin1 default NULL,