Skip to content

Instantly share code, notes, and snippets.

View nisanthchunduru's full-sized avatar

Nisanth Chunduru nisanthchunduru

View GitHub Profile
@nisanthchunduru
nisanthchunduru / introduce_python_to_bao.py
Created June 20, 2016 11:07
Introducing python to Bao
import is_holding_yellow_box
# This is a solution for tutorial 3
def solution_for_tutorial_3
down
right
if is_holding_yellow_box
right
down
left
@nisanthchunduru
nisanthchunduru / GETTING_STARTED.md
Created June 17, 2016 06:23
Factory Girl 3.2.0 Getting Started Guide

Getting Started

Update Your Gemfile

If you're using Rails, you'll need to change the required version of factory_girl_rails:

gem "factory_girl_rails", "~> 3.0"
@nisanthchunduru
nisanthchunduru / feature_ideas_for_timezoneio.md
Last active May 17, 2016 17:00
Feature ideas for timezone.io
  • Ability to set work hours.

    I work between 3-11 PM and would like to be show online (like not having my gravatar greyed out or something else) at say, 10 PM

  • Ability to set a status message like “Away for lunch” or “On a medical leave” etc.

  • Ability to see more information about a user (like Polymail) when I say, click on the user's profile picture

    More user information

This is just a nice to have

@nisanthchunduru
nisanthchunduru / expected_output_unclear.md
Last active March 20, 2016 00:59
What's the expected output?

Hey Gojek,

The expected output in case of an infinite grid is unclear. With the following seed data

AAA
AAA
DAD
@nisanthchunduru
nisanthchunduru / random_string_generator.rb
Created September 19, 2015 10:43
Generate a random string in ruby
class RandomStringGenerator
CHARACTERS = ('a'..'z').to_a
def self.generate(length)
new.generate(length)
end
def generate(length)
length.times.map { random_character }.join
end
@nisanthchunduru
nisanthchunduru / oopsSessionDraft.md
Last active September 22, 2015 05:42
OOPS session draft

7 Learnings

  1. Learning git

Will talk about version control systems, git and the best way to get started with git

  1. Contributing to open source

Will talk about how to find projects, github, pull requests etc.

@nisanthchunduru
nisanthchunduru / gist:d4c906c39f7ca8d30aa6
Created September 6, 2015 16:46
CKEditor scrollIntoView error stacktrace
Uncaught TypeError: Cannot read property 'scrollIntoView' of undefinedCKEDITOR.dom.selection.scrollIntoView @ ckeditor.js?body=1:26808afterInsert @ ckeditor.js?body=1:23765CKEDITOR.editable.CKEDITOR.tools.createClass.proto.insertHtml @ ckeditor.js?body=1:21840(anonymous function) @ ckeditor.js?body=1:22365listenerFirer @ ckeditor.js?body=1:461CKEDITOR.event.name.fire @ ckeditor.js?body=1:607CKEDITOR.editor.fire @ ckeditor.js?body=1:731CKEDITOR.tools.extend.insertHtml @ ckeditor.js?body=1:16333(anonymous function) @ ckeditor.js?body=1:36384listenerFirer @ ckeditor.js?body=1:461CKEDITOR.event.name.fire @ ckeditor.js?body=1:607CKEDITOR.editor.fire @ ckeditor.js?body=1:731firePasteEvents @ ckeditor.js?body=1:36439externalDrop @ ckeditor.js?body=1:37490(anonymous function) @ ckeditor.js?body=1:37462listenerFirer @ ckeditor.js?body=1:461CKEDITOR.event.name.fire @ ckeditor.js?body=1:607CKEDITOR.editor.fire @ ckeditor.js?body=1:731fireDragEvent @ ckeditor.js?body=1:37512(anonymous function) @ ckeditor.js?body=1:37434
@nisanthchunduru
nisanthchunduru / gist:41c9f12b7aba091b6799
Last active August 28, 2015 11:49
Some CKEditor dependencies
// //= require ckeditor/dialogui
// //= require ckeditor/dialog
// //= require ckeditor/clipboard
@nisanthchunduru
nisanthchunduru / README.md
Last active August 29, 2015 14:27 — forked from lopezjurip/README.md
Write to NTFS on OSX Yosemite and El Capitan

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update
@nisanthchunduru
nisanthchunduru / gist:2e510824266886a59571
Last active August 29, 2015 14:26 — forked from ruckus/gist:2293434
Basic setup of WAL-E for continuous archiving and recovery

WAL-E needs to be installed on all machines, masters and slaves.

How to install WAL-E

Only one machine, the master, writes WAL segments via continuous archiving. The configuration for the master postgresql.conf is:

archive_mode = on
archive_command = 'envdir /etc/wal-e.d/env wal-e wal-push %p'
archive_timeout = 60