Last active
          November 4, 2021 13:24 
        
      - 
      
 - 
        
Save shatgupt/b76ebbf67c6a38d0decb686ff230dd04 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
shatgupt renamed this gist
Oct 16, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. - 
        
shatgupt revised this gist
Oct 16, 2018 . 14 changed files with 85 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ /* This program won't run properly without an input. Try with: abc */ import java.util.Scanner; class HelloWorld { public static void main(String[] args) { System.out.println("Hello World from Java!"); Scanner scan = new Scanner(System.in); System.out.println(scan.nextLine()); } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ /* This program won't run properly without an input. Try with: abc */ fun main(args: Array<String>) { println("Hello World from Kotlin!") println(readLine()!!) } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ console.log('Hello World from Nodejs!') console.log(require('fs').readFileSync(0).toString()) This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ puts "Hello World from Ruby!" puts $stdin.read This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { puts("Hello World from C!"); char *buffer = NULL; long unsigned int len; getline(&buffer, &len, stdin); printf("%s", buffer); free(buffer); return 0; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #include <iostream> using namespace std; int main(int argc, char **argv) { cout << "Hello World from C++!\n"; string mystr; getline(cin, mystr); cout << mystr << "\n"; return 0; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ package main import "os" import "fmt" import "bufio" func main() { fmt.Println("Hello World from Go!") reader := bufio.NewReader(os.Stdin) text, _ := reader.ReadString('\n') fmt.Print(text) } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ <?php echo "Hello World from PHP!\n"; echo stream_get_contents(STDIN); ?> This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ import sys print('Hello World from Python!') for line in sys.stdin: print line.rstrip() This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ import sys print('Hello World from Python 3!') for line in sys.stdin: print(line.rstrip()) This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ /* This program won't run properly without an input. Try with: abc */ object HelloWorld { def main(args: Array[String]): Unit = { println("Hello World from Scala!") println(scala.io.StdIn.readLine()) } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +0,0 @@  - 
        
shatgupt revised this gist
Jul 11, 2017 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,2 @@ console.log('Hello World from nodejs!') console.log(`${process.argv.slice(2).length} Args: [${process.argv.slice(2).join(', ')}]`)  - 
        
shatgupt revised this gist
Jun 29, 2017 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import java.util.Arrays; class HelloWorld { public static void main(String[] args) { System.out.println("Hello World from java!"); System.out.println(args.length + " Args: " + Arrays.toString(args)); } }  - 
        
shatgupt revised this gist
Jun 10, 2017 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ console.log('Hello World from nodejs!') // remove node and script path from args to keep output uniform across envs console.log(`${process.argv.slice(2).length} Args: [${process.argv.slice(2).join(', ')}]`)  - 
        
shatgupt created this gist
Jun 10, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ import sys print 'Hello World from python!' print str(len(sys.argv[1:])) + ' Args: [' + ', '.join(sys.argv[1:]) + ']'