Skip to content

Instantly share code, notes, and snippets.

View ninadpchaudhari's full-sized avatar
:shipit:

Ninad P.Chaudhari ninadpchaudhari

:shipit:
View GitHub Profile
@ninadpchaudhari
ninadpchaudhari / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@ninadpchaudhari
ninadpchaudhari / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../core-tooltip/core-tooltip.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@ninadpchaudhari
ninadpchaudhari / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@ninadpchaudhari
ninadpchaudhari / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@ninadpchaudhari
ninadpchaudhari / local.conf
Last active September 11, 2015 22:04
local.conf for installation of OpenStack using DevStack on master/kilo
[[local|localrc]]
ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
#trying to use Github instead of openstack git
GIT_BASE=https://github.com
#!/bin/sh
now=$(date)
echo "[ $now ] Statring Post-Receive \n" > /var/www/vit.myjournals.cu.cc/logs$
echo "Starting Post-receive"
unset GIT_INDEX_FILE
git --work-tree=/var/www/vit.myjournals.cu.cc/app --git-dir=/var/repo/vit.myj$
cd /var/www/vit.myjournals.cu.cc/app
echo "Correcting owners"
chown -R ninad:www-data *
@ninadpchaudhari
ninadpchaudhari / Bucket policy
Created February 14, 2018 22:02
S3 Policy to make content in Bucket public by default
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "MakeItPublic",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<Your Bucket Name here>/*"
}
@ninadpchaudhari
ninadpchaudhari / stream.py
Created February 19, 2018 21:22
py stream
'''
This codes crawls the tweets in SanFrancisco area from Twitter.
Jan 11, 2014
Feng Chen
'''
import tweepy # twitter api module - python version
import datetime # python datetime module
import json # python json module