Skip to content

Instantly share code, notes, and snippets.

View farizluqman's full-sized avatar
💭
I may be slow to respond.

FarEast farizluqman

💭
I may be slow to respond.
View GitHub Profile
@farizluqman
farizluqman / Vagrantfile
Created March 28, 2018 20:48
Windows Server 2012 with Remote Desktop (RDP) + Vagrant + Virtualbox
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
VM_BOX="mwrock/Windows2012R2"
# IP address Information
STATICIP="x.x.x.x"
SUBNETMASK="y.y.y.y"
ROUTER="z.z.z.z"
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const extractCSS = new ExtractTextPlugin('[name].fonts.css');
const extractSCSS = new ExtractTextPlugin('[name].styles.css');
const BUILD_DIR = path.resolve(__dirname, 'build');
@farizluqman
farizluqman / test-eq-expression.php
Created April 3, 2017 18:10 — forked from ravinsharma12345/test-eq-expression.php
Parse equality string and test equality expression
<?php
// does not consider &&, ||, XOR, OR, AND operator, ternary operators for now.
$var_a = 100;
$var_b = 100;
$var_c = 110;
$var_d = (double) 100;
$var_e = "100";
$var_f = false;
$symbol_table = compact("var_a", "var_b", "var_c", "var_d", "var_e", "var_f");