Skip to content

Instantly share code, notes, and snippets.

View hndr91's full-sized avatar

Afif Hendrawan hndr91

  • Malang, ID
View GitHub Profile
data = [
["John", "Tidak", "Tidak"],
["Swiper", "Ya", "Ya"],
["Boot", "Tidak", "Tidak"],
["Roger", "Ya", "Tidak"],
["Dora", "Tidak", "Tidak"],
["Diego", "Tidak", "Tidak"]
]
# Pro tips
//const { By, until } = require('selenium-webdriver');
const Base = require('../helper/base');
const Elem = require('../helper/selector');
const Constant = require('../Constant');
describe('Test Kompen Login Page', () => {
let webDriver, base;
beforeEach(async ()=> {
base = new Base();
'''
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 February 5, 2019 11:26
[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 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

@hndr91
hndr91 / snippet.ts
Last active October 23, 2018 01:30
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 June 2, 2018 07:00
Install MongoDB PHP Driver on OSX
@hndr91
hndr91 / index.html
Created March 28, 2018 08:47
hint css layouting
<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>
@hndr91
hndr91 / tmux-cheatsheet.markdown
Created June 10, 2017 19:48 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@hndr91
hndr91 / pauli.vba
Last active May 10, 2017 06:03
Ms. Word Macro : Pauli Test Generator
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
% 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