This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdlib.h> | |
int main() | |
{ | |
printf("Hi and Bye"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ListeningExecutorServiceIllus | |
{ | |
//Just for illustration purpose, not a working version. | |
//Creation of ListeningExecutorService | |
class MyCallbackRunnable implements Runnable | |
{ | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(hello). | |
-export([hello/0]). | |
hello()-> io:fwrite("Hello World\n"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(hello). | |
%% API | |
-export([hello/0]). | |
hello() -> io:fwrite("Hi. This is my first Erlang Program.\n"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This is my first Ruby code | |
print "Hi Everyone. How are you?" | |
puts "Enter a value" | |
num = gets.to_i | |
puts "Enter another value" | |
num_2 = gets.to_i | |
puts num.to_s + " + " + num_2.to_s + " = " + (num + num_2).to_s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by gansai on 11/10/15. | |
*/ | |
public class FindPairSum_Brute { | |
public static void main(String args[]) | |
{ | |
int array[] = new int[] { 1, 43, 2, 55, 21, 87, 9 }; | |
int sum = 76; | |
boolean foundPair = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
/** | |
* Created by gansai on 11/10/15. | |
*/ | |
public class FindPairSum_Sorted { | |
public static void main(String args[]) | |
{ | |
Integer array[] = new Integer[] { 1, 43, 2, 55, 21, 87, 9 }; |
OlderNewer