Skip to content

Instantly share code, notes, and snippets.

View anantja-in's full-sized avatar

Anant Jain anantja-in

View GitHub Profile

Keybase proof

I hereby claim:

  • I am anantja-in on github.
  • I am anant90 (https://keybase.io/anant90) on keybase.
  • I have a public key whose fingerprint is 0B14 BAC7 3F56 0663 4EC4 E395 B5B6 D2B0 193D CB7B

To claim this, I am signing this object:

bin/rails generate controller welcome index

Routers are defined in config/routes.rb

Rails.application.routes.draw do
	resources :articles
	root 'welcome#index'
@anantja-in
anantja-in / Go Notes.md
Last active August 29, 2015 14:18
Small snippets/notes collected while going through essential-go course at https://www.kajabinext.com/courses/1-essential-go

Go Notes

"Go is for the essentialist"

  • Language
  • Libraries
  • Tooling

First program

@anantja-in
anantja-in / R Notes.r
Last active August 29, 2015 14:16
Small snippets of R code written while learning R.
> data.frame(a=1:5, b=6:10)
a b
1 1 6
2 2 7
3 3 8
4 4 9
5 5 10
> data.frame(a=1:5, b=6:9)[["a"]]
Error in data.frame(a = 1:5, b = 6:9) :
@anantja-in
anantja-in / React Notes.md
Last active September 28, 2015 16:59
These notes were taken while watching React videos at https://egghead.io/. Most of the code is from the videos there.

#Introduction to Properties

<script type="text/jsx">
    /*** @jsx React.DOM */
    var APP = React.createClass({
        getDefaultProps:function(){
            return {
                txt:'gdfgdfgdf',
                cat:0
@anantja-in
anantja-in / Intro to JQuery.md
Last active August 20, 2019 17:09
A long long time ago, I learnt jQuery and made these notes. They used to be helpful in the earliest days when I was still getting used to programming the web.

Introduction

The following two do the same thing:

$(document).ready(function() {});
$(function() {});