Skip to content

Instantly share code, notes, and snippets.

rajeshpv

Block or report user

Report or block rajeshpv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rajeshpv
rajeshpv / NVM_on_Windows_10.md
Last active May 22, 2019
NVM on windows 10 even having admin prev, did not work for me, but I could automate as follows
View NVM_on_Windows_10.md
View proverb.txt
Proverb's are means to suffice ambiguities in life and continue. If you consider the above phrase is a proverb, then so be it, recursive.
@rajeshpv
rajeshpv / int_sort.sql
Created Jul 18, 2014
Given a table with one int column with random int ordered, write a query to get sorted asc and desc, as 2 columns of output
View int_sort.sql
-- the idea here is to populate rownum after sorting is done
-- if sorting is done along with row num, it defeats the purpose
-- rowid, does not help, since it almost generates a hascode value like
with l_table as (
select measure_id from int_table order by 1 asc
), r_table as (
select measure_id from int_table order by 1 desc
)
View chrome-console-load-jquery.js
var jq = document.createElement('script');
jq.src = "//code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
!function () {
var script = document.createElement("script");
script.setAttribute("src", "//code.jquery.com/jquery-2.0.0.min.js");
document.body.appendChild(script);
}();
View books-to-sell.txt
0521179447
0262516419
1422160596
1933988740
875843425
1591391869
0262640640
1590596166
1565928695
@rajeshpv
rajeshpv / node-notes.txt
Last active Dec 27, 2015
nodejs, npm, bower, grunt, jekyll
View node-notes.txt
download and unzip nodejs runtime from http://nodejs.org/download/
cd ~/Downloads
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x64.tar.gz
mkdir -p ~/programs/node && cd $_
tar xfz ~/Downloads/node-v0.10.28-linux-x64.tar.gz
ln -s ~/programs/node/node-v0.10.28-linux-x64 ~/programs/node_current
sudo vi /etc/bash.bashrc
>>put and append bin to path
export NODE_HOME=~/programs/node_current
@rajeshpv
rajeshpv / gist:6383811
Created Aug 29, 2013
rajesh-karma.conf.js
View gist:6383811
module.exports = function(config) {
config.set({
basePath : '../',
files : [
//JASMINE,
//JASMINE_ADAPTER,
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'test/lib/angular/angular-mocks.js',
@rajeshpv
rajeshpv / gist:6383092
Last active Dec 21, 2015
angular-test
View gist:6383092
>>install node executable into PATH, after downloading from http://nodejs.org/
unzip and set into PATH variable
>>check version
node --version
>>install karma (test runner ) for node programs http://karma-runner.github.io/
npm install -g karma
or for proxy
npm --https-proxy=http://10.145.254.93:9090 -g install karma
You can’t perform that action at this time.