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
View simple_selenium.py
'''
Dependecies :
selenium webdriver -> pip install selenium
'''
import unittest
from selenium import webdriver
class SimpleTest(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Safari()
@hndr91
hndr91 / odoo.md
Last active Feb 5, 2019
[Solved] Odoo 12 service won't start on Windows
View odoo.md

[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 https://support.microsoft.com/en-us/help/3118401/update-for-universal-c-runtime-in-windows

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
onGameStart(){
this.ref = setInterval(()=>{
this.incNumberEmitter.emit(this.incNumber + 1);
this.incNumber++;
}, 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
hndr91 / mongoDriver.md
Last active Jun 2, 2018
Install MongoDB PHP Driver on OSX
View mongoDriver.md
@hndr91
hndr91 / index.html
Created Mar 28, 2018
hint css layouting
View index.html
<html>
<head>
<title>Demo Layouting - Muhammad Afif Hendrawan</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="wrap">
<div id="header">
</div>
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@hndr91
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)
Next
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
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);
end
end
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])
print(installed_packages_list)
You can’t perform that action at this time.