Skip to content

Instantly share code, notes, and snippets.

@ekancepts
ekancepts / yo-wordpress
Created May 9, 2013 04:13
Error while installing wordpress with yeoman
sudo yo yo-wordpress
[sudo] password for user:
Trying to get the latest stable version of Wordpress
Latest version: 3.5.1
Name of the theme you want to use: (mytheme) pk_s
Starter theme (please provide a github link): (https://github.com/Automattic/_s.git)
Which version of Wordpress do you want? (3.5.1)
Would you like to include RequireJS (for AMD support)? (Y/n) n

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@ekancepts
ekancepts / DealerAgent.md
Created December 7, 2012 17:54
Dealer Agent module

Creating this module taking affiliate module as reference Created admin/controller/module/dealer_agent.php

@ekancepts
ekancepts / code.md
Created December 2, 2012 10:13
Opening internal links in same window

##I am using wordpress 3.4.2
When used following code

<a href="<?php the_permalink(); ?> " target="_self">Test</a><br />
<a href="http://www.google.co.in/" >Google with http and no other attributes</a><br />
<a href="http://www.google.co.in/" target="_self">Google with http and target=_self</a><br />
<a href="google.com" >Google without http</a>

It is generating folowing HTML code

@ekancepts
ekancepts / SASS.md
Created November 2, 2012 07:23
Experiments with Chris Eppstein's RESPONSIVE LAYOUTS WITH SASS

#This experiment is done on Ubuntu 12.04. All the commands are executed in Terminal unless otherwise mentioned. ##Clone Chris Eppstein's Responsive Layouts With SASS ###Open Terminal and go to the folder where you want create this test project and execute following command git clone git://gist.github.com/1163006.git ###Create a project with Compass compass create test_responsive

I have both test_responsive folder and Chris Eppstein's git clone(gist-399379) in same folderCopy all .scss files into test_responsive/sass folder and .css files into test_responsive/stylesheets folder
cp gist-3993794/*.scss test_responsive/sass/
cp gist-3993794/*.css test_responsive/stylesheets/

###Copy all the code from sass/output.scss into sass/screen.scss

# Error-1
DEPRECATION WARNING on line 21 of /var/www/projects/local-dev/sass/project_responsive/sass/_media-handheld.scss:
@extending an outer selector from within @media is deprecated.
You may only @extend selectors within the same directive.
This will be an error in Sass 3.3.
It can only work once @extend is supported natively in the browser.
# Error-2
DEPRECATION WARNING on line 24 of /var/www/projects/local-dev/sass/project_responsive/sass/_media-handheld-landscape.scss:
@extending an outer selector from within @media is deprecated.
@ekancepts
ekancepts / _grid-system.scss
Created November 1, 2012 14:02 — forked from chriseppstein/_grid-system.scss
Building Responsive Layouts with Sass
@import "compass/utilities/general/clearfix";
$gutter-width: 10px; // All grids systems have the same gutter width
$float-direction: left;
$left-gutter-width: ceil($gutter-width / 2) !default;
$right-gutter-width: $gutter-width - $left-gutter-width !default;
$base-line-height: 21px;
$show-grid-background: false;
@mixin centered {
@ekancepts
ekancepts / destroy-sample-data.php
Created October 15, 2012 20:45 — forked from mgirouard/destroy-sample-data.php
A quick hack to destroy all sample data in an OpenCart catalog.
<?php
$options = getopt('p:');
$prefix = empty($options['p'])
? realpath('.')
: realpath($options['p']);
if (empty($prefix)) {
die("Bad prefix. Try again.\n");
}