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
@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");
7
3
5
1
9
for i in range(5):
a = input()
print(10 - a)
@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:

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;
@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
////////
// 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
////////
@hjr265
hjr265 / nyan.js
Created March 27, 2015 07:00
Async.auto FTW
async.auto({
a: function() {},
b: ['a', function() {}],
c: ['b', function() {}],
d: ['c', function() {}],
e: ['d', function() {}]
@hjr265
hjr265 / RandomBot.js
Created March 17, 2015 10:34
RandomBot.js
function Bot() {
this.grid = []
for(var y = 0; y < 10; ++y) {
var row = []
for(var x = 0; x < 10; ++x) {
row.push({
attacked: false
})
}
this.grid.push(row)