Skip to content

Instantly share code, notes, and snippets.

View vivekrk's full-sized avatar
🎯
Focusing

Vivek Kundapur vivekrk

🎯
Focusing
View GitHub Profile
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
module.exports = {
/**
*
* Using raw socket.io functionality from a Sails.js controller
*
*/
index: function (req,res) {
@vivekrk
vivekrk / git.migrate
Created October 1, 2016 05:41 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@vivekrk
vivekrk / introrx.md
Created February 28, 2018 17:11 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing