Skip to content

Instantly share code, notes, and snippets.

View entrptaher's full-sized avatar
🎯
Focusing

Md. Abu Taher entrptaher

🎯
Focusing
View GitHub Profile

Project: Interactive Freelance Help Service

Outline:

Anyone having question about Freelancing, Outsourcing and Tech Business might get help online and offline.

We need the following services:

  • Interactive Help Database
  • Helpline
  • Premium Consultation
@entrptaher
entrptaher / plan.md
Last active August 29, 2015 14:21
Some plan for Otaku Evolution

Otaku Evolution (OE)

This is a plan to make the best out of an Anime/Manga related group such as Otaku Evolution.

  • Gaming

This group should host some particular game officially. Those games should be able to be played by almost everyone. Anyone will be able to join the group and play right away. If this is a MMORPG, group members should be able to TEAM UP and fight against everyone else.

OE Group will be to provide support, tips, tricks to group members about those games, hold contest, talk about experiences. Group should pick up the games by a Poll or just ask the members for their opinion.

  • Group Chat

@entrptaher
entrptaher / BinDecOct.c
Last active October 18, 2023 18:30
Structured Programming: Assignment
#include <stdio.h>
#include <stdlib.h>
/* This is a Program to convert between Binary, Decimal and Octal numbers
How it'll operate:
First the program will ask user to choose what he want to do,
then get the input, convert it and output the result
Limitations:
The result is limited to 255 or FF in hex value.
@entrptaher
entrptaher / Rules.md
Last active March 5, 2021 19:31
Training Camp Rules

ট্রেইনিং ক্যাম্পের রুলস

  • এই ক্যাম্পে আমরা HTML, CSS, JS, jQuery, Git, Bootstrap, React সহ আরো অনেক কিছু শিখবো এবং একটা ভালো পোর্টফোলিও গড়ে তুলবো।
  • শেখার জন্য কোন টাকা প্রদান করা লাগবে না।
  • কমপক্ষে আগামী ৬ মাস পর্যন্ত সময় দেয়া লাগবে।
  • সপ্তাহে কমপক্ষে ১৪ ঘন্টা সময় দেয়া লাগবে। এর বেশি সময় দিলে আরো ভালো হবে। ভালো সময় হলো সকাল ৬ টা থেকে ৮ টা, ৮ টা থেকে ১০ টা, সন্ধ্যা ৬টা থেকে ৮ টা, রাত ১০ টা থেকে ১২ টা ইত্যাদি।
  • যে ১ সপ্তাহে কমপক্ষে ১৪ ঘন্টা দিবে না, সে ক্যাম্প থেকে বাদ।
  • বিভিন্ন টিউটোরিয়াল এবং চ্যালেন্জ প্রদান করা হবে।
  • সবকিছু হাতে কলমে শিখিয়ে দেয়া হবে না।
  • কোন প্রশ্ন থাকলে গ্রুপে করতে হবে, কেউ না কেউ সেটার উত্তর দিবে। তাৎক্ষণিক উত্তর নাও পেতে পারেন, কিন্তু উত্তরের জন্য বসে না থেকে নিজেই চ্যালেন্জ শেষ করতে পারলে ভালো।
  • হাতে কলমে সবসময় সাহায্য চাইলে দেশে প্রচুর কোচিং সেন্টার আছে। অর্থ পরিশোধ করে শেখা যাবে।
@entrptaher
entrptaher / fake_resolution.js
Last active September 26, 2023 10:38
Fake Screen Resolution with Nightmarejs
/*
Credits and more resources:
https://gist.github.com/emenoh/65708b03f1a99d92f14db9b0d60d8fd0
https://chromium.googlesource.com/chromium/blink-public/+/master/web/WebDeviceEmulationParams.h
*/
const Nightmare = require('nightmare');
Nightmare.action('emulateDevice',
(name, options, parent, win, renderer, done) => {
@entrptaher
entrptaher / index.js
Created March 15, 2017 09:51
Maybe some not so professional way of debugging nightmare
var Nightmare = require('nightmare'),
path = require('path'), // ADD THIS
nightmare = Nightmare({
show: true,
alwaysOnTop: false,
webPreferences: {
preload: path.resolve('preload.js') // USE PATH.RESOLVE FUNCTION
}
});

Lazy Dev Style (On Linux):

  • Grab a database from mlab and a free test SMTP server from mailtrap.io

  • Install NodeJS

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
let runfunc = (actions) => {
let current = actions.shift()
current[0](current[1]).then((result) => {
console.log(result)
if (actions.length)
runfunc(actions)
})
}
module.exports = runfunc
@entrptaher
entrptaher / array_splice.js
Last active July 17, 2017 06:08 — forked from arsho/array_splice.js
Array splice implementation to convert an existing array to target array
(() => {
/**
* Fill gaps of an array
* @param {Object} sourceArray - The source array to compare to
* @param {Object} targetArray - The target array to fill the gap
* @param {string} Filler - The element to be used to fill the gap
*/
let similarFill = ((sourceArray, targetArray, filler) => {
let pos = 0;
for (let i = 0; i < targetArray.length; i++) {