Skip to content

Instantly share code, notes, and snippets.

View ahmetbicer's full-sized avatar

Ahmet Biçer ahmetbicer

View GitHub Profile
@ahmetbicer
ahmetbicer / popupIncorrectOpenEvent.js
Created July 9, 2020 10:31
Mapbox Popup Incorrect "Open" Event
var popup = new mapboxgl.Popup()
.setLngLat(coordinates)
.setHTML(`<div>
<h1>This is a popup with incorrect open event!</h1>
</div>`)
.addTo(map);
popup.on('open', function() {
//this open event will not fire correctly for the first time
})
@ahmetbicer
ahmetbicer / popupCorrectOpenEvent.js
Created July 9, 2020 10:28
Mapbox Popup Correct Open Event
new mapboxgl.Popup()
.setLngLat(coordinates)
.setHTML(`<div>
<h1>This is a popup with correct open event!</h1>
</div>`)
.on('open', function() {
//this open event will fire correctly
})
.on('close',function(){
//close event
int height(Node *node) {
if (node == NULL) {
return 0;
}
else {
int lheight = height(node->left);
int rheight = height(node->right);
if (lheight > rheight) {
return (lheight + 1);
#!/usr/bin/env python3
import numpy
import os
import re
import sys
import tqdm
import urllib.request
from bs4 import BeautifulSoup
from colorama import Fore, Back
def get_categories(home_url):
categories = []
link = 'https://www.hepsiburada.com/laptop-notebook-dizustu-bilgisayarlar-c-98'
categories.append(link)
return categories
model = Sequential()
model.add(
LSTM(10,
activation='relu',
input_shape=(look_back,1))
)
model.add(Dense(1))
model.compile(optimizer='adam', loss='mse', metrics=['accuracy'])
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->