Skip to content

Instantly share code, notes, and snippets.

Afif Hendrawan hndr91

  • Surabaya, ID
Block or report user

Report or block hndr91

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Dependecies :
selenium webdriver -> pip install selenium
import unittest
from selenium import webdriver
class SimpleTest(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Safari()
hndr91 /
Last active Feb 5, 2019
[Solved] Odoo 12 service won't start on Windows

[Solved] Odoo 12 service won't start on Windows

Odoo 12 required python 3.5++. Since python 3.5++ requered new C compiler, We need an update for Universal C Runtime.

Download and Install Universal C Runtime from

For Windows 7 user, you need to update into SP1 before install Universal C Runtime.

This solution work on me when using Windows 7 and Odoo 12 Windows Installer

View snippet.ts
this.ref = setInterval(()=>{
this.incNumberEmitter.emit(this.incNumber + 1);
}, 1000);
/* Keterangan */
1. Pertama kalian harus membuat property ref tanpa assign ke value.
Ref digunakan sebagai tempat untuk fungsi setInteval(). Perhatikan baris ke-2
hndr91 /
Last active Jun 2, 2018
Install MongoDB PHP Driver on OSX
hndr91 / index.html
Created Mar 28, 2018
hint css layouting
View index.html
<title>Demo Layouting - Muhammad Afif Hendrawan</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<div id="wrap">
<div id="header">
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
hndr91 / pauli.vba
Last active May 10, 2017
Ms. Word Macro : Pauli Test Generator
View pauli.vba
Sub PsikoNumGenerator()
Randomize Timer
theEnd = InputBox("Jumlah angka yang akan dibuat", "Jumlah Angka")
If Not IsNumeric(theEnd) Then Exit Sub
If Int(theEnd) = 0 Then Exit Sub
For i = 1 To theEnd
theText = theText & vbTab & Int(Rnd(i) * 10)
Selection.TypeText Text:=theText
End Sub
View storevar.m
% holder variabel
im = zeros(10,1);
% store hasil ekstraksi ke element im
im(1,1) = feature(1); % misal, masukkan fitur satu ke im ke 1
im(2,1) = feature(2); % masukkan fitur 2 ke im ke 2
% dst %
% kalau fungsi fitur yang store sama di looping aja
hndr91 / meanBlur.m
Created Mar 18, 2017
mean blur 3x3 kernel
View meanBlur.m
function result = meanBlur(input)
%im = imread('cameraman.tif');
[x,y] = size(input);
result = zeros(x,y);
for i=1:x-2
for j=1:y-2
window = [input(i:i+2,j:j+2)];
result(i+1,j+1) = mean2(window);
View pip check
import pip
installed_packages = pip.get_installed_distributions()
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
for i in installed_packages])
You can’t perform that action at this time.