Skip to content

Instantly share code, notes, and snippets.

View afzafri's full-sized avatar
🎯
Focusing

Afif Zafri afzafri

🎯
Focusing
View GitHub Profile
@afzafri
afzafri / instagram-fetcher.php
Created December 29, 2015 15:08 — forked from shahril96/instagram-fetcher.php
Simple Instagram media info fetcher
<?php
/*
* title : simple instagram info fetcher
*
* author : shahril
* receipant : afif zafri
* date : 29-dis-2015
*/
@afzafri
afzafri / saps-fetcher.php
Last active January 1, 2016 13:18 — forked from shahril96/saps-fetcher.php
Simple SAPS data fetcher
<html>
<head>
<title>SAPS IC Data Fetcher</title>
</head>
<body>
<h1>SAPS IC Data Fetcher</h1>
<form action="index.php" method="post">
IC : <input type="text" name="ic" value="<?php (isset($_POST['ic']) ? $_POST['ic'] : null) ?>"><br>
Year :
@afzafri
afzafri / index.html
Created April 14, 2016 17:16
save image function
<!-- codes -->
<div id="target">
<h1>Test print this</h1>
<div class='timetable'></div>
</div>
<button onclick="saveToImage()" class="saveImg">Save as Image</button>
<br><br>
@afzafri
afzafri / hijradate.js
Created May 19, 2016 06:40
js function for convert gregorian date to Islamic Hijra date
//credit : http://stackoverflow.com/questions/5177598/how-to-convert-gregorian-date-to-hijri-date
function gmod(n,m){
return ((n%m)+m)%m;
}
function kuwaiticalendar(adjust){
var today = new Date();
if(adjust) {
adjustmili = 1000*60*60*24*adjust;
todaymili = today.getTime()+adjustmili;
<div data-role="page" id="pageone">
<div data-role="main" class="ui-content">
<h2>List Icons:</h2>
<ul data-role="listview" data-inset="true">
<li data-role="list-divider">Pilih Negeri</li>
<li>
<select>
<option>Perlis</option>
<option>Kedah</option>
@afzafri
afzafri / nombor.php
Last active May 29, 2016 16:03
kira nombor setiap 2 nombor dan display
<html>
<head>
<title>Check Nombor</title>
</head>
<body>
<form action="nombor.php" method="get">
<b>Masukkan 4 nombor (space) : </b><br><br>
<input type="text" name="no"> &nbsp; &nbsp;
<input type="submit" name="submit" value="Kira">
import java.util.*;
import java.text.*;
public class regex {
public static void main(String args[])
{
Scanner input = new Scanner(System.in);
int i,j,n;
@afzafri
afzafri / vsr.bat
Created September 19, 2016 15:43
Unhide Files from Virus Shortcut
:: COPYRIGHT 2015 AFIF ZAFRI
@echo off
title Virus Shortcut Remover By Afif
color 71
echo ----------------------------------
echo ==Virus Shortcut Remover by Afif==
echo ----------------------------------
echo.
set /p input="Masukkan huruf pendrive : "
attrib -h -r -s /s /d %input%:\*.*
@afzafri
afzafri / malaysia_postcode_list.json
Created September 19, 2016 17:08 — forked from zulhfreelancer/malaysia_postcode_list.json
Malaysia Postcode List By State (JSON)
{
"prepared_by": "Zulhilmi Zainudin",
"last_update": "21 June 2016",
"data": [
{
"state": "Selangor",
"codes": [
"40000",
"40100",
@afzafri
afzafri / studform.ui
Last active December 5, 2016 05:43
Simple GUI Python Program. Python 2.7 + PySide QT
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>studinfo</class>
<widget class="QWidget" name="studinfo">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>344</width>
<height>524</height>