Skip to content

Instantly share code, notes, and snippets.

View hjr265's full-sized avatar
🕓
Four o'clock

Mahmud Ridwan hjr265

🕓
Four o'clock
View GitHub Profile
print "Hello, world!\n";
echo 'Hello, world!'
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
Imports System
Public Class Main
Public Shared Sub Main()
System.Console.WriteLine("Hello, world!")
End Sub
End Class
console.log("Hello, world!");
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
#include <iostream>
using namespace std;
int main() {
cout << "Hello, world!" << endl;
return 0;
}
@hjr265
hjr265 / 0_reuse_code.js
Created December 13, 2015 18:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@hjr265
hjr265 / dotenv.sh
Last active November 29, 2015 04:41
Reads each line from .env file in the current directory and exports key=value to environment
#!/bin/bash
name=${1:-.env}
while read -r line
do
line=`echo "$line" | sed -e 's/^ *//' -e 's/ *$//'`
if [[ X"" = X"$line" ]]
////////
// This sample is published as part of the blog article at www.toptal.com/blog
// Visit www.toptal.com/blog and subscribe to our newsletter to read great posts
////////