Skip to content

Instantly share code, notes, and snippets.

View gchaturvedi's full-sized avatar

Gaurav Chaturvedi gchaturvedi

  • San Francisco, CA
View GitHub Profile
public class Hello {
public static void main(String [] args) {
System.out.println("Hello world!");
}
}
function Person(name) {
this.name = name;
}
Person.prototype = {
constructor: Person, // does not doing this line have any consequences?
sayName: function() {
console.log(this.name); },
var a = 1;
var d = 2;
function b() {
a = 5;
d = 23;
return;
function a() {}
}
b();
console.log(a);
@gchaturvedi
gchaturvedi / gist:71edcb83c528b2c36936
Created July 31, 2014 03:11
sunshine_lesson1_adapter
package com.example.android.sunshine.app;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;