Skip to content

Instantly share code, notes, and snippets.

View picwellwisher12pk's full-sized avatar
😶
https://github.com/picwellwisher12pk/animated-education

Amir Hameed picwellwisher12pk

😶
https://github.com/picwellwisher12pk/animated-education
  • Pakistan
View GitHub Profile
@picwellwisher12pk
picwellwisher12pk / es6.md
Last active March 24, 2022 11:34
Codehopper Sessions

JavaScript (ES6 / ECMAscript 6)

Arrow Functions

Regular Functions

function someMethod(){
    console.log('Inside someMethod')
    return true
}
@picwellwisher12pk
picwellwisher12pk / webpack.config.js
Created February 1, 2022 10:18 — forked from danielwrobert/webpack.config.js
Example Webpack Config File
const path = require( 'path' );
const webpack = require( 'webpack' );
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = ( env, options ) => {
return {
entry: './src/block.js',
output: {
path: path.resolve( __dirname, 'build' ),
function downloadFile (url) {
let name;
fetch(url)
.then((resp) => {
resp.headers.forEach((header) => {
if (header.includes("attachment")) {
const filename = header.match(/filename="(.*)"/);
name = filename[1];
}
});
@picwellwisher12pk
picwellwisher12pk / Free hosting providers for web applications.md
Last active February 6, 2024 05:58
Free hosting providers for front-end & back-end applications
@picwellwisher12pk
picwellwisher12pk / github_resource_of_resources.md
Last active September 23, 2020 09:29
Resource of Resources

This is a list of list of resources.

  1. awesome-math (A curated list of awesome mathematics resources)
  2. free-for-dev
  3. awesome-for-beginners (A list of awesome beginners-friendly projects.)
  4. awesome (😎 Awesome lists about all kinds of interesting topics)
  5. nodebestpractices (The Node.js best practices list)
  6. javascript-questions
  7. wtfjs (A list of funny and tricky JavaScript examples)
  8. awesome-selfhosted (List of Free Software network services and web applications which can be hosted locally)
  9. awesome-sysadmin (A curated list of amazingly awesome open sour
@picwellwisher12pk
picwellwisher12pk / console.js
Created December 23, 2019 08:19 — forked from Harshmakadia/console.js
Mastering JS console like a Pro
// time and time end
console.time("This");
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
}
console.log("Result", total);
console.timeEnd("This");
// Memory
@picwellwisher12pk
picwellwisher12pk / tmux-cheatsheet.markdown
Created October 22, 2019 07:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@picwellwisher12pk
picwellwisher12pk / scrapper.py
Last active June 6, 2019 12:31
Python based scrapper for smartybro
# Import libraries
from bs4 import BeautifulSoup
from contextlib import closing
import requests
from requests import get
from requests.exceptions import RequestException
import time
import sys
import os
import webbrowser
let
env_dev = true,
env_debug = false,
//CSS
sass = require('gulp-sass'),
// autoprefixer = require('gulp-autoprefixer'),
autoprefixer = require('autoprefixer'),
minifyCSS = require('gulp-cssnano'),
postcss = require('gulp-postcss'),
var path = require('path');
var sass = require('sass-loader');
var autoprefixer = require('autoprefixer');
var webpack = require('webpack');
var findCacheDir = require('find-cache-dir');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
var getClientEnvironment = require('./env');