Skip to content

Instantly share code, notes, and snippets.

View amirulasyraf88's full-sized avatar
🎯
Focusing For Brain Damage

Amirul Asyraf Mohamed Azam amirulasyraf88

🎯
Focusing For Brain Damage
View GitHub Profile
#include<cmath>
#include<iostream>
#include<climits>
using namespace std;
int Maximum_Sum_Subarray(int arr[],int n) //Overall Time Complexity O(n)
{
int ans = A[0],sum = 0;
for(int i = 1;i < n; ++i) //Check if all are negative
ans = max(ans,arr[i]);
@amirulasyraf88
amirulasyraf88 / bubbleSort.cpp
Created August 20, 2015 02:44
Sorting Algorithm [Array]
#include <iostream>
#include <iomanip>
using namespace std;
typedef int DataType;
const int N_ITEMS = 10;
void swap( DataType&, DataType& );
void displayArray( const DataType[], int );
void bubbleSort( DataType[], int );
#include <iostream>
using namespace std;
typedef int DataType;
void merge( DataType theArray[], int first, int mid, int last );
void mergeSort( DataType theArray[], int first, int last );
void displayArray( const DataType theArray[], int first, int last );
const int N_ITEMS = 10;
@amirulasyraf88
amirulasyraf88 / QuickSort.cpp
Created September 1, 2015 13:49
Quick Sort
#include <iostream>
#include <iomanip>
using namespace std;
typedef int DataType;
const int N_ITEMS = 10;
void swap( DataType&, DataType& );
void displayArray( const DataType[], int, int );
void quickSort(DataType[], int, int);
@amirulasyraf88
amirulasyraf88 / Radix.cpp
Created September 1, 2015 14:10
RadixSort
#include <iostream>
#include <cmath>
#include <cstdlib>
using namespace std;
typedef int DataType;
void intToString( int n, string& s, int length );
void radixSort(string theArray[], int size, int length );
void swap( DataType& x, DataType& y );
'''MediaWiki has been successfully installed.'''
[[File:8.png]]
==Manual:Installing MediaWiki==
MediaWiki installs itself using an interactive, web-based installation script. Before you can run this script, you need to do a couple of things: see prerequisites or [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_guide#Summarized_installation_guide short installation guide for experts.]
MediaWiki can be difficult to install for the average computer user who does not have experience with Apache, PHP and MySQL. Most users who wish to use wiki software may benefit from using a [http://wikiindex.org/Category:Free_MediaWiki_wiki_farms free MediaWiki host] or via a [https://www.mediawiki.org/wiki/Software_bundles software bundles.]
Note Note: For troubleshooting information, see [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Errors_and_Symptoms#Installation_Errors Special:MyLanguage/Manual:Errors and Symptoms#Installation Errors.]
@amirulasyraf88
amirulasyraf88 / Wiki.esy.es
Created September 23, 2015 02:06
SYS ADMIN
'''System administrator maintenance, Assignment 02 (Drupal and Wiki)''' is the last project appoint to us 6 member of the group to develop Drupal and Wiki webpage base on their own understanding on how to Install the 2 common CMS (Content Management System) chosen to provide the latest update of the report and assignment.
= Group Member =
{| class="wikitable"
| 1. || Amirul Asyraf Bin Mohamed Azam || style="text-align:right;" | 1141123412
|-
| 2. || Muhammad Nasriq Bin Mohd Khairul Leow || style="text-align:right;" | 1141124233
|-
| 3. || Ahmad Fahmi Bin Ariffin || style="text-align:right;" | 1141125316
@amirulasyraf88
amirulasyraf88 / Q1
Created December 12, 2015 17:56
Tutorial 4 (WebTech)
<script>
document.getElementryByID.(“exampleid”).innerHTML= “JavaScripting”;
</script>
@amirulasyraf88
amirulasyraf88 / SubmissionX.html
Last active December 21, 2015 12:24
Website Question 5
<!DOCTYPE html>
<html>
<head>
<style>
#topform{
padding-top: 50px;
margin: 0 auto;
}
@amirulasyraf88
amirulasyraf88 / spider.py
Created December 31, 2015 16:32
Spider Web Crawler [ Mudah.my ]
#Extracting first page of http://www.mudah.my/malaysia/cars-for-sale
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.selector import Selector
from items import NewsItem
filename = "output.csv"
fields = ["headline", "price", "url"] # define fields to use
with open(filename,'a+') as f: # handle the source file