Skip to content

Instantly share code, notes, and snippets.

k kshirish

Block or report user

Report or block kshirish

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
kshirish / rxjs.js
Last active Mar 4, 2019
Hands on RxJS
View rxjs.js
Rx.Observable.create(function(observer) {
let counter = 0;
setInterval(function() { += 2));
}, 2000);
function(val) {
kshirish / acl.js
Created Feb 21, 2018
Access Control
View acl.js
// users
const users = [
id: 0,
name: "Rocky"
id: 1,
name: "John"
kshirish / file.js
Created Feb 11, 2018
Instagram Public APIs
View file.js
// User details
// Feed
View react-test.js
import React from 'react';
import { Provider, connect } from 'react-redux';
import { combineReducers, createStore, applyMiddleware } from 'redux'
import { render } from 'react-dom';
import thunk from 'redux-thunk'
import { createLogger } from 'redux-logger'
import PropTypes from 'prop-types'
import registerServiceWorker from './registerServiceWorker';
View test.js
Project: angular-gantt v1.2.11 - Gantt chart component for AngularJS
Authors: Marco Schweighauser, Rémi Alvergnat
License: MIT
!function(){"use strict";angular.module("gantt",["gantt.templates","angularMoment"]).directive("gantt",["Gantt","ganttEnableNgAnimate","$timeout","$templateCache",function(a,b,c,d){return{restrict:"A",transclude:!0,templateUrl:function(a,b){var c;return c=void 0===b.templateUrl?"template/gantt.tmpl.html":b.templateUrl,void 0!==b.template&&d.put(c,b.template),c},scope:{sortMode:"=?",filterTask:"=?",filterTaskComparator:"=?",filterRow:"=?",filterRowComparator:"=?",viewScale:"=?",columnWidth:"=?",expandToFit:"=?",shrinkToFit:"=?",showSide:"=?",allowSideResizing:"=?",fromDate:"=?",toDate:"=?",currentDateValue:"=?",currentDate:"=?",daily:"=?",autoExpand:"=?",taskOutOfRange:"=?",taskContent:"=?",rowContent:"=?",maxHeight:"=?",sideWidth:"=?",headers:"=?",headersFormats:"=?",timeFrames:"=
# adduser/login
# verifies the account with existing username or creates a new one
npm adduser

# logout
# logs out the current npm user
npm logout

# bin
kshirish /
Last active Apr 23, 2016
npm getting started


Makes it easy to share and reuse the code(packages) that other developers have written.

Semantic versioning

A standard to communicate the kind of changes that are there in a particular release.

Generally, a version would be in the form of Major.Minor.Patch i.e. 1.0.0

  • Bug fixes and other minor changes: Patch release, increment the last number, e.g. 1.0.1
    • One can specify a patch release for let say 1.0.4 by 1.0/1.0.x/~1.0.4
  • New features which don't break existing features: Minor release, increment the middle number, e.g. 1.1.0
kshirish / curl
Created Jan 7, 2016
curl example
View curl
curl -v -X POST --data "@WCLMAT-v1.xlsx" -H "Content-Type:multipart/form-data" --cookie "userId=USR3558934016" http://localhost:9000/products/upload
kshirish / Hello.scala
Last active Jan 22, 2016
Scala snippets
View Hello.scala
// Example 0. Class Inheritance
class A {
def f() = println("I'm f from A")
val a = new A
View grunt-sass.js
module.exports = function(grunt) {
sass: {
dist: {
options: {
style: 'expanded',
loadPath: ['bower_components/foundation/scss']
files: {
You can’t perform that action at this time.