Skip to content

Instantly share code, notes, and snippets.

View ademilter's full-sized avatar

Adem ilter ademilter

View GitHub Profile
if (lineType == "Bus") {
markup = '<div class="ResultOption" data-line-type="Bus">' +
'<div class="ResultOption-figure">' + data.code + '</div>' +
'<div class="ResultOption-text">' +
'<div class="ResultOption-text_row1">' + data.from_name + '</div>' +
'<div class="ResultOption-text_row2">' + data.go_name + '</div>' +
'</div>' +
'</div>';
@ademilter
ademilter / json-düzenlemesi.js
Last active February 22, 2020 11:16
Durak ara için
// http://www.iett.gov.tr/tr/main/ajaxDurakSonuc/?q=A0049B
// linkteki sonuca hat_yonu, location alanları da gelmeli.
"item": {
"durak_adi": "SANAYİ CADDESİ",
"durak_kodu": "A23",
"hat_yonu": "G",
"location": "Yenibosna",
"yaklasan_hatlar": [
@ademilter
ademilter / gulpfile.js
Created December 29, 2015 21:30 — forked from o/gulpfile.js
test for @ademilter
var gulp = require('gulp');
gulp.task('copy', function () {
return gulp
.src('index.js')
.pipe(gulp.dest('dist'))
})
import scala.collection.mutable
import scala.util.Random
/**
* Created by husrev on 10/02/16.
*/
object HelloApp extends App {
type Point = (Int, Int)
type Trace = List[Point]
<?php
$sources = array();
$keys = get_post_custom_keys();
foreach ((array)$keys as $key) {
$keyt = trim($key);
if (is_protected_meta($keyt, 'post'))
continue;
$values = array_map('trim', get_post_custom_values($key));
{
"window.zoomLevel": 0.6,
"editor.fontSize": 14,
"editor.lineHeight": 24,
"editor.wordWrap": true,
"editor.fontLigatures": true,
"editor.fontFamily": "Fira Code",
"editor.tabSize": 2,
"files.autoSave": "onFocusChange",
"terminal.external.osxExec": "iTerm.app",
@ademilter
ademilter / sql-mongo_comparison.md
Created February 16, 2017 13:54 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@ademilter
ademilter / cloudSettings
Last active November 10, 2019 13:24
Visual Studio Code Sync Settings Gist
{"lastUpload":"2019-03-31T20:16:21.976Z","extensionVersion":"v3.2.7"}
$theme: (
period: 'Imsak',
bg: #D2F2FF,
color: #1281A2
), (
period: 'Gunes',
bg: #FFEBC1,
color: #A6601E
), (
period: 'Ogle',
let m = moment()
for (let dayOfMonth = 0; dayOfMonth < 12; dayOfMonth++) {
let getMonth = m.month(dayOfMonth)
let monthName = getMonth.format('MMMM')
let daysInMonth = getMonth.daysInMonth()
_.set(this.calender, monthName, daysInMonth)
}