Skip to content

Instantly share code, notes, and snippets.

View hjr265's full-sized avatar
🕔
Five o'clock

Mahmud Ridwan hjr265

🕔
Five o'clock
View GitHub Profile
@hjr265
hjr265 / driver.c
Last active January 18, 2019 09:08
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
int main() {
FILE *pfin, *pfout;
pfin = fdopen(3, "r");
pfout = fdopen(4, "w");
@hjr265
hjr265 / driver.py
Last active January 17, 2019 15:10
A = [3, 7, 5, 9, 1]
for x in A:
print(x)
b = int(input())
if x + b != 10:
break
else:
7
3
5
1
9
for i in range(5):
a = input()
print(10 - a)

Keybase proof

I hereby claim:

  • I am hjr265 on github.
  • I am hjr265 (https://keybase.io/hjr265) on keybase.
  • I have a public key whose fingerprint is 10B8 BA34 C2EC 2103 F9C4 0F8C 43F6 40AF 21F5 3B53

To claim this, I am signing this object:

@hjr265
hjr265 / hello.cpp
Created March 13, 2016 14:35
Arturia C++ Hello
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
cout << "Hello, "+s+"!" << endl;
return 0;
using System;
class Hello {
static void Main() {
Console.WriteLine("Hello, world!");
}
}
class Hello {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
<?php
echo "Hello, world!\n";
print('Hello, world!')