This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>On Yılda Programlama Öğrenin <sup><a href="#footnote1">(*)</a></sup></h1> | |
<h3>Peter Norvig <sup><a href="#footnote2">(**)</a></sup></h3> | |
<hr> | |
<h2>Neden herkes böyle bir telaş içinde?</h2> | |
Herhangi bir kitapçıya gittiğinizde Teach Yourself Java in 7 Days (7 Günde Java Öğrenin) benzeri, | |
size birkaç günde veya birkaç saatte Visual Basic, Windows, Internet (vs.) öğretmeyi vadeden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import logging.config | |
def configure_logging(): | |
LOG_DIR = "logs/" | |
LOGGING = { | |
"version": 1, | |
"disable_existing_loggers": True, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH mevzusu cogu programci icin tam anlasilmayan ve her programlama dilinde farkli cozulen bir sorun | |
ve cok vakit kaybina neden oluyor | |
peki virtualenv ne demek ona deginelim, aslinda virtualenv'in yaptigi su. Senin PATH'inin basina virtualenv klasorundeki bin klasorunu koyuyor | |
yaptigi temelde bu | |
virtualenv calistirmadan once PATH=/usr/bin:/bin diyelim | |
bu durumda ahmet yazarsan ahmet binary'sini o klasorlerde arayacak | |
virtualenv'i aktive ettiginde yaptigi aslinda su | |
PATH=myenv/bin;/usr/bin:/bin | |
dolayisiyla virtualenv cok da bir sey yapmiyor | |
virtualenv'i aktiflestirmeden dogrudan o venv icindeki python'u da calistirirsan ayni kapiya cikar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'ht) | |
(setq log-this-js-log-format "console.log('%s: ', %s)") | |
(setq log-this-python-log-format "print(\"%s: \", %s)") | |
(setq log-this-clojure-log-format "(print \"%s: \" %s)") | |
(setq log-this-log-formats | |
(ht ("typescript-mode" log-this-js-log-format) | |
("js2-mode" log-this-js-log-format) | |
("js-mode" log-this-js-log-format) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to set build number in Azure Devops | |
# We want build number of the following form: | |
# "build master efab0 20190505 12:12" | |
# "build pr feature/foo efab0 20190505 12:12" | |
# Builtin Azure Devops build numbering is insufficient, so we override with this script. |
OlderNewer