Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Kushal V. Mahajan kushalmahajan

💭
I may be slow to respond.
  • Mumbai
Block or report user

Report or block kushalmahajan

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
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
View component.js
{
this.openDrawer ? (
<VSideDrawer
title="Edit User"
close={this.toggleDrawer}
okText="Save"
okCallback={this.saveUser}
>
Body of drawer
</VSideDrawer>
@kushalmahajan
kushalmahajan / linked_list_OLOO_style.js
Last active Dec 4, 2018
Implementation of Linked list in Javascript using OLOO ( Object linked with another object ) style of coding i.e. no "new" keyword and sugar coated classes
View linked_list_OLOO_style.js
/**
* Initialize your data structure here.
*/
var MyLinkedList = {
head: null,
length: 0,
Node: function (val){
return {
@kushalmahajan
kushalmahajan / App.js
Last active Jul 27, 2017
A basic React app.js to demonstrate connectivity to Node/Express APIs
View App.js
import React, {Component} from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
state = {notes: []};
componentDidMount() {
fetch('/api/notes')
View rs_notes.js
'use strict';
const express = require('express');
const router = express.Router();
router.get('/', function(req, res) {
res.json([
{
id: 1,
title: 'First note',
@kushalmahajan
kushalmahajan / index.js
Last active Jul 27, 2017
React node app
View index.js
'use strict';
const express = require('express'),
notes = require('./routes/rs_notes');
const app = express();
const router = express.Router();
// route middleware that will happen on every request
router.use((req, res, next) => {
@kushalmahajan
kushalmahajan / MainController.js
Last active Oct 11, 2015
Install Buttons not working
View MainController.js
app.controller('MainController', ['$scope', function($scope) {
$scope.apps = [
{
icon: 'img/move.jpg',
title: 'MOVE',
developer: 'MOVE, Inc.',
price: 0.99
},
{
icon: 'img/shutterbugg.jpg',
You can’t perform that action at this time.