Skip to content

Instantly share code, notes, and snippets.

View adeelibr's full-sized avatar
🥋
doing bat shit crazy stuff with code

Adeel Imran adeelibr

🥋
doing bat shit crazy stuff with code
View GitHub Profile
#include<iostream>
#include<fstream>
#include<conio.h>
#include<iomanip>
#include<stdio.h>
#include<string.h>
using namespace std;
int menu();
class Book
{
@adeelibr
adeelibr / lexical analyzer java
Created August 25, 2017 20:30
A lexical analyzer made in Java
/*
* This programs works as a lexical analyzer
*/
package LexicalAnalyzer2;
import java.util.Scanner;
/**
* @author adeel
*/
public class Built {
@adeelibr
adeelibr / Type Casting Java
Created August 25, 2017 20:32
Type casting in java widening casting vs narrowing casting
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lab2TypeCasting;
/**
*
* @author Adeel
@adeelibr
adeelibr / webpack.base.config.js
Last active April 22, 2018 11:00
webpack base configuration for only .js extension support
module.exports = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}
@adeelibr
adeelibr / index.html
Last active April 22, 2018 12:14
HTML 5 Template, with div id app. To populate react app.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<base href="/">
<title>Tutorial</title>
</head>
@adeelibr
adeelibr / webpack.base.config.js
Last active April 22, 2018 12:36
Webpack base configuration for .js and html
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
@adeelibr
adeelibr / index.js
Last active April 22, 2018 13:10
A skeleton react app
import React from 'react';
import { render } from 'react-dom';
const App = () => {
return (
<div>
<h3>Our Application Is Alive</h3>
<p>This isn’t reality. This — is fantasy.</p>
<p>Yes I am quoting Star Trek I cant help it.</p>
</div>
@adeelibr
adeelibr / webpack.base.config.js
Created April 22, 2018 13:39
Webpack base configuration file with SCSS, HTML, .JS with react support
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
@adeelibr
adeelibr / styles.scss
Created April 22, 2018 14:10
Some basic styling example for webpack 4 tutorial
body {
background-color: crimson;
color: yellow;
font-size: 16px;
}
h3, p {
text-align: center;
}
@adeelibr
adeelibr / package.json
Created April 22, 2018 14:19
dev script for webpack tutorial
"scripts": {
"start:dev": "webpack-dev-server --mode development --config config/webpack.base.config.js --open --hot --history-api-fallback"
}