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 / Java Hangman
Created August 25, 2017 20:33
A simple command line game of Hangman made in Java
package Hangman;
import java.util.Scanner;
import java.util.Random;
public class Built {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
Random random = new Random();
@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 / .babelrc
Last active April 26, 2018 17:35
.babelrc file to put in root of your folder
{
"presets": [
"@babel/env",
"@babel/preset-react",
[
"@babel/preset-stage-2",
{
"decoratorsLegacy": true
}
]
@adeelibr
adeelibr / package.json
Last active April 26, 2018 17:40
Dependencing webpack, .js loaders and html webpack plugin
{
"name": "tutorial",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
@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>