Top 12 Repositories on github ‘to me’ (september 2017)

October 1, 2017 § Leave a comment

  1. ncase / trust
    An interactive guide to the game theory of cooperation

  2. jeromeetienne / AR.js
    Efficient Augmented Reality for the Web – 60fps on mobile!

  3. iliakan / javascript-tutorial-en
    Modern JavaScript Tutorial

  4. toddmotto / public-apis
    A collective list of public JSON APIs for use in web development.

  5. EbookFoundation / free-programming-books
    📚 Freely available programming books

  6. sdmg15 / Best-websites-a-programmer-should-visit
    🔗 Some useful websites for programmers.

  7. christopherjenness / NBA-player-movement
    Visualization and analysis of NBA player tracking data

  8. papers-we-love / papers-we-love
    Papers from the computer science community to read and discuss.

  9. kamranahmedse / developer-roadmap
    Roadmap to becoming a web developer in 2017

  10. Hack-with-Github / Awesome-Hacking
    A collection of various awesome lists for hackers, pentesters and security researchers

  11. jiahaog / nativefier
    Make any web page a desktop application

  12. kdn251 / interviews
    Everything you need to know to get the job.



Intermediate Front End Development Projects on freecodecamp in two days

September 13, 2017 § Leave a comment

Assalamu Alaikum everyone 😀
I just finished my fourth and last project on Intermediate Front End Development Projects on freecodecamp and in this post i’ll describe these hours, tools, maybe mention some lines of code and BUGS.

For the first Project Build a Random Quote Machine:


I used API to generate movies quotes from and using Postman the easiest way to deal with APIs in general. for .js file i think it was easy and have no bugs, but i get struggled before in using twitter share button, the tweet text wasn’t changing in every time i changing it in code, but now i have to solution for this problem one if you wanna use twitter’s share button style and the other one if you wanna use you style:

//SOL-1: you have to reload twitter share button
//SOL-2: you have to write all text, hashtags, everything in href

Note: in previous code i used ES6 feature ${ } to write variables, it’s similar to “str “+var+” str”.

you maybe don’t know how to get random number in range, the easy way:

var index = Math.floor(min + (Math.random() * ((max - min) + 1)));

The project on github

For the second Project Show the Local Weather:


I used this API using postman, The only bug i faced, it was horrible but i have simple solution to deal with it not fixing it, Here is the Problem The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. if you working on Windows just open CMD and write this line to open chrome in no-security
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="c:/chromedev"
or Linux
sudo google-chrome --no-sandbox --disable-web-security --user-data-dir="/opt/google/chrome"

here’s you can enable location on devices

if ("geolocation" in navigator) {
    navigator.geolocation.getCurrentPosition(function(position) {
        func(position.coords.latitude, position.coords.longitude);
} else {
    // geolocation isn't available

The project on github

For the third Project Build a Wikipedia Viewer:


Wikipedia have the most wonderful APIs system i have ever seen, maybe because i didn’t try all apis’ systems, but it’s not easy to use any of them i guess. but give it try from this link and you can open random article using this link nothing to say for this project, you can see my progress here

For the fourth Project Use the JSON API Complete :


I don’t like this project at all, and i think it was completely useless. Ok you can see what i did

Install Python3 on linux

June 28, 2017 § Leave a comment

Remove Duplicate Files in python

June 21, 2017 § Leave a comment

How it works?

the program takes the file path from user, then calculates its sha-256 hash, then takes the folder path from user to search in and start search for files with the same sha-256.


  1. install python 3.x from here
  2. create a new .py file and copy the source code into it.
  3. run script.

*NOTE: ‘the folder path not included sub-folders’.

if you want to contribute, fork it.

Follow me on github

How Dropbox Knows When You’re Sharing Copyrighted Stuff?

May 31, 2017 § Leave a comment

Before i dive in:

‘A’ is a criminal, he wants to rob a bank so he asked his friends ‘B’ and ‘C’ for help. They robbed the bank successfully but unfortunately ‘B’ had forgotten his gloves at home before the crime. The police officer got his fingerprint and after a few days from fingerprint matching, the police catch’em all.
Same thing for files, every tiny file has its unique fingerprint from characters and numbers like “ah4213jn234bmn53b” and even if you change the location or name or things like that the fingerprint not change at all – if you wanna see install this and have little fun – The dropbox has a big table with the fingerprints of the origin files and when you upload a file, a hash is generated and if its fingerprint exist the site blocked the uploaded one.

It’s the same idea to store your password and username.
Follow me on quora

ABCD * D = DCBA (Puzzle+Solution)

April 7, 2017 § Leave a comment

The Puzzle

“ABCD * D = DCBA”, Replace every character with a number to make the equation mathematically right.

The Solution using brute-force algorithm

using namespace std;
int main(){
    for(int a=0;a<=9;a++){
        for(int b=0;b<=9;b++)if(a!=b){
            for(int c=0;c<=9;c++)if(a!=c && b!=c){
                for(int d=0;d<=9;d++)if(a!=d && b!=d && c!=d){
                        if((a*1000+b*100+c*10+d)*d == (d*1000+c*100+b*10+a))
                            return cout<<"abcd\n"<<a<<b<<c<<d,0;

    return 0;

The final answer is 1089.

The 6th number is both square and triangular [Puzzle]

March 28, 2017 § Leave a comment


My Review > Grokking Algorithms An illustrated guide for programmers and other curious people

March 23, 2017 § Leave a comment

Grokking Algorithms An illustrated guide for programmers and other curious peopleGrokking Algorithms An illustrated guide for programmers and other curious people by Aditya Y. Bhargava

My rating: 4 of 5 stars

To me, This book have two sections first from chapter 1 to chapter 10,and the second and i mostly liked is the chapter 11 “Where to go next” but the book in general very useful for beginners.


View all my reviews

Install atom packages on windows

February 16, 2017 § Leave a comment

Assalamu Alaikum everyone 😀 ,
If you’re using atom this article will help you install its packages on windows.First things first, go to and search for the package you want to install, in this article i want to install “turbo-javascript” package.

Install packages using GUI:

Open atom -> Packages -> settings view -> install packages/themes
in the search box write “turbo-javascript” without double quotes (or any package you want) then click install. DONE

This slideshow requires JavaScript.

Install packages using CMD:

Open cmd then write:

cd c:\users\pcName\.atom


apm //stands for Atom Package Manager
//&lt; and &gt; stands for less than and greater
apm install &lt;turbo-javascript&gt; //replace turbo-javascript with your package's name

you’ll see script like this (without the last line)


Solution – 330A – Cakeminator – codeforces

April 8, 2016 § Leave a comment

#include <bits/stdc++.h>
using namespace std;
int main()
    int r,c;
    char arr[11][11];
    for(int i=0 ; i<r ; i++)
        for(int j=0 ; j<c ; j++)         {             cin>>arr[i][j];
    int co=0; //how many dots
    int res1=0; //1stpart
    int re=0; //how many repeat
    for(int i=0 ; i<r ; i++)
        bool repeat=false; //repeat or not
        for(int j=0 ; j<c ; j++)

        if(co==c && repeat==true)
            {res1=co-1+res1; repeat=true; re++;}
        else if(co==c)
            {res1=co+res1; repeat=true; re++;}
    int res=0; //2ndpart
    for(int i=0 ; i<c ; i++)
        bool repeat=false; //repeat or not
        for(int j=0 ; j<r ; j++)
            {res=co-re+res; repeat=true;}

Find more from my submissions HERE

Where Am I?

You are currently browsing the Programming category at Orange Notes.

%d bloggers like this: