Skip to content

Instantly share code, notes, and snippets.

@vaibhavmule
vaibhavmule / yourdomain.com
Last active December 11, 2015 16:12 — forked from mockra/nginx
Nginx config for hosting static site. Change "yourdomain.com" with you domain name.
server {
listen 80;
root /var/www/yourdomain.com/public;
index index.html index.htm;
server_name yourdomain.com;
location / {
default_type "text/html";
@vaibhavmule
vaibhavmule / requests.js
Created December 11, 2015 16:24
Make a HTTP request with XMLHttpRequest.
// GET Request
var xhr = new XMLHttpRequest();
// Three Arguments: Method, Url and true is optional boolean for async
xhr.open("GET", "http://example.com/", true);
// Log the response
xhr.onload = function () {
console.log(xhr.responseText);
};
@vaibhavmule
vaibhavmule / ubuntu-install.txt
Created January 4, 2016 07:51
Ubuntu Installaiton
install, chromium, git, git config, dropbox, build-essential libssl-dev for nodejs,
@vaibhavmule
vaibhavmule / tictactoe.py
Created September 28, 2015 06:24
Tic Tac Toe game checker.
first_input = list(raw_input())
second_input = list(raw_input())
third_input = list(raw_input())
def tictactoe(first_row, second_row, third_row):
if check_horizontal(first_row, second_row, third_row) == True:
res = True
elif check_verticle(first_row, second_row, third_row) == True:
res = True
@vaibhavmule
vaibhavmule / nvm-install.sh
Last active April 22, 2016 13:39
NodeJs installations bash script
# Install command line developer tools
cd /Applications/Utilities/
xcode-select --install
# install nvm node and npm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
echo ". ~/.nvm/nvm.sh" > ~/.bash_profile
nvm install stable
nvm use stable
nvm alias default stable

Keybase proof

I hereby claim:

  • I am vaibhavmule on github.
  • I am vaibhavmule (https://keybase.io/vaibhavmule) on keybase.
  • I have a public key ASAvEBTuIiSrgdmtgR0udGn4st5D8e3khRQXzqZeBqjh2go

To claim this, I am signing this object:

@vaibhavmule
vaibhavmule / init.coffee
Last active September 29, 2016 18:17
Atom Syncing Settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@vaibhavmule
vaibhavmule / drf.md
Last active October 6, 2016 08:46
Django Rest Framework Installation

Installation

pip install django
pip install djangorestframework
pip install django-filter
@vaibhavmule
vaibhavmule / learning.md
Created February 16, 2017 20:01 — forked from sibelius/learning.md
Learning Path React Native

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
  • Learn how to use fetch to get data from your backend

Learn Navigation

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@nytimesbits" />
<meta name="twitter:creator" content="@nickbilton" />
<meta property="og:url" content="http://bits.blogs.nytimes.com/2011/12/08/a-twitter-for-my-sister/" />
<meta property="og:title" content="A Twitter for My Sister" />
<meta property="og:description" content="In the early days, Twitter grew so quickly that it was almost impossible to add new features because engineers spent their time trying to keep the rocket ship from stalling." />
<meta property="og:image" content="http://graphics8.nytimes.com/images/2011/12/08/technology/bits-newtwitter/bits-newtwitter-tmagArticle.jpg" />