Skip to content

Instantly share code, notes, and snippets.

View ravipudi's full-sized avatar

Murali Ravipudi ravipudi

  • Wells Fargo India
  • Hyderabad
  • 11:34 (UTC +05:30)
View GitHub Profile
@ravipudi
ravipudi / README.md
Last active April 29, 2019 06:53
webdev notes

upgrading create-react-app

Uninstall previous version installed with npm install -g create-react-app, and simply use npx create-react-app [whatever you want to do with it]

upgrade an application created with create-react-app

Run yarn upgrade --latest react-scripts, rebuild your app, and everything should more-or-less work, barring any breaking changes.

@ravipudi
ravipudi / README-Template.md
Created October 27, 2017 09:26 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@ravipudi
ravipudi / electron-creating-portable-windows-application.md
Last active July 20, 2024 02:41
Electron - Creating a windows portable executable

How to create a portable windows application without an installer from an electron project:

  1. Clone the electron-quick-start repo:
git clone https://github.com/electron/electron-quick-start
  1. yarn
  2. Make your application - probably edit main.js to navigate to some URL
  3. yarn add electron-packager
  4. Edit package.json - update the 'name' and add a new script 'packager':

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

# How to echobot with XMPP, BOSH, and Strophe
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this
#/etc/hosts
127.0.0.1 localhost.local
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server.
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0)
@ravipudi
ravipudi / README.md
Created December 9, 2016 06:31 — forked from harry1989/README.md
Thanking friends who wishes for your birthday
from collections import defaultdict, deque
def find_number_universe(keylog):
numbers = set()
for attempt in keylog:
for num in attempt:
numbers.add(num)
return numbers
# Initial eclipsing binary star intro
# http://www.physics.sfasu.edu/astro/ebstar/ebstar.html
#
class LightCurve(object):
"""
This class represents light curve of an astronomical object. Light curve means
curve between time and magnitude (visual magnitude in this case).
"""
def __init__(self, start_date, time_unit):
self._points = []
@ravipudi
ravipudi / Game.py
Created June 25, 2013 09:57 — forked from tempox/Game.py
import random
import time
import pickle
## Initial constants
initial_human = 100
human = initial_human
human_dead = 0
initial_beast = 25
beast = initial_beast
beast_dead = 0
################################################################################
# conway.py
#
# Author: electronut.in
#
# Description:
#
# A simple Python/matplotlib implementation of Conway's Game of Life.
################################################################################