Skip to content

Instantly share code, notes, and snippets.

View gansai's full-sized avatar
🎯
Focusing

Ganesh S gansai

🎯
Focusing
View GitHub Profile
@gansai
gansai / hello.erl
Created October 3, 2015 13:06
Printing Hello World in Erlang
-module(hello).
-export([hello/0]).
hello()-> io:fwrite("Hello World\n").
@gansai
gansai / TweetMain.java
Created October 3, 2015 11:49
Post a Tweet from Java code
import java.util.List;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.conf.ConfigurationBuilder;
public class TweetMain {
public static void main(String[] args) {
@gansai
gansai / ListeningExecutorServiceIllus.java
Created September 2, 2015 04:42
Illustration of ListeningExecutorService
class ListeningExecutorServiceIllus
{
//Just for illustration purpose, not a working version.
//Creation of ListeningExecutorService
class MyCallbackRunnable implements Runnable
{
@Override
@gansai
gansai / Trailer
Created October 20, 2014 07:07
Nice trailer showing important things
I just checked http://addyosmani.com/blog/
The trailer of the page containing the following sounded interesting:
Fundamentals
First do it, then do it right, then do it better. This is one fundamental I always keep in mind when developing anything.
If you're a developer wishing to learn something new, regardless of skill-level, remember that as important as it is to read, it's equally as important to get out there and *do*.
Create a new gist or JSBin, pop open the console and experiment. It's effing fun.
@gansai
gansai / timepass.c
Created October 18, 2014 14:00
time pass code
#include<stdlib.h>
int main()
{
printf("Hi and Bye");
return 0;
}