Skip to content

Instantly share code, notes, and snippets.

💭
🦈

M. Serhat Dundar msdundar

💭
🦈
Block or report user

Report or block msdundar

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 picture_downloader.rake
# encoding: utf-8
require 'httparty'
require 'digest/md5'
require 'ruby-progressbar'
namespace :picture_downloader do
desc "fetch the images from cloudinary"
# To start: $ rake picture_downloader:fetch_pictures
task fetch_pictures: :environment do
@msdundar
msdundar / auth.py
Last active Apr 6, 2019
urllib.request.urlopen
View auth.py
#!/usr/bin/env python3.2
import os.path, urllib.request
from sys import exit
from time import sleep
# Hatalı girilen dosya yolunu düzelt
try:
yer = input("Dosyanın konumu: ").strip()
dosya_adi = input("Dosyanın ismi: ").strip()
View db-boyut-son.sql
mysql> SELECT table_schema "moodle",
-> sum( data_length + index_length ) / 1024 /1024
"Data Base Size in MB", sum( data_free )/ 1024 / 1024
-> FROM information_schema.TABLES GROUP BY table_schema ;
+--------------------+-----------------------+-------------------+
| Veritabanı Adı | Veritabanı Boyutu[MB] | sum(data_free)[MB]|
+--------------------+-----------------------+-------------------+
| moodle | 232.15587044 | 0.00000000 |
+--------------------+---------------------- +-------------------+
@msdundar
msdundar / google-maps-api-multiple-animated.html
Created Apr 8, 2012
Google Maps JavaScript API v3 - Multiple Animated Map
View google-maps-api-multiple-animated.html
<!DOCTYPE HTML>
<html><head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#harita_canvas { height: 100% }
</style>
@msdundar
msdundar / google-maps-api-animated.html
Created Apr 7, 2012
Google Maps JavaScript API v3 - Animated Map
View google-maps-api-animated.html
<!DOCTYPE HTML>
<html><head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
@msdundar
msdundar / google-maps-api-basic.html
Created Apr 7, 2012
Google Maps JavaScript API v3 - Basic Map
View google-maps-api-basic.html
<!DOCTYPE HTML>
<html><head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
@msdundar
msdundar / denklem_koku_serhat.py
Created Mar 7, 2011
Denklem Kökü İçin Bi Kaç Ufak Değişiklik
View denklem_koku_serhat.py
# -*- coding: cp1254 -*-
from math import sqrt
# sade bir dille yaptigim degisiklikleri anlatmaya calisacagim.
# matematiksel islemler icin hazir bir modul bulunmakta. Bunun ismi math.
# ama biz butun modulu ice aktarmak istemiyoruz, cunku bu koca modulden yalnizca
# sqrt fonksiyonunu kullanacagız. Bir tek sqrt icin butun modulu import etmeye gerek yok.
print """############################################
You can’t perform that action at this time.