Skip to content

Instantly share code, notes, and snippets.

Avatar

Mahmud Ridwan hjr265

View GitHub Profile
View driver.c
#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");
View solution.py
for i in range(5):
a = input()
print(10 - a)
View driver.py
A = [3, 7, 5, 9, 1]
for x in A:
print(x)
b = int(input())
if x + b != 10:
break
else:
View keybase.md

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 Mar 13, 2016
Arturia C++ Hello
View hello.cpp
#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 Dec 13, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:4d46c60a43deac3f6930
////////
// 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 Mar 27, 2015
Async.auto FTW
View nyan.js
async.auto({
a: function() {},
b: ['a', function() {}],
c: ['b', function() {}],
d: ['c', function() {}],
e: ['d', function() {}]
View 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)
You can’t perform that action at this time.