This file contains hidden or 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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'catpix' | |
require 'yaml' | |
require 'colorscore' | |
include Colorscore | |
def draw_img(pic) | |
Catpix::print_image(pic, options = { |
This file contains hidden or 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 'creek' | |
require 'activerecord-import' | |
class ExcelDataParser | |
def initialize(dosya_yolu) | |
@dosya_yolu = dosya_yolu | |
@veriler = [] | |
@sayac = 1 | |
end |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'nokogiri' | |
require 'mechanize' | |
xmlfile, xmlpath = ARGV | |
def download_image(url, index, link_sum, path) | |
agent = Mechanize.new | |
puts "İndiriliyor: #{url}" |
This file contains hidden or 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
#!usr/bin/env ruby -w | |
# coding: utf-8 | |
require "win32api" | |
def dosyaya_kaydet(dosya_ismi, metin) | |
dosya = File.open(dosya_ismi, 'a') | |
dosya.puts metin, "\n" | |
end |
This file contains hidden or 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
// Bu bir satırlık yorumdur. Bir satırlık yorum böyle görünür | |
/* | |
ÇOK SATIRLI YORUM | |
Rust Mozilla Research tarafından geliştirilmesi desteklenen bir dildir. | |
Alt Seviye dil kontrolleri üzerine üst seviyenin kolaylığını ve veri | |
güvenliğini ekler | |
*/ | |
/// Dökümantasyon yorumu böyle yazılr. Markdown notasyonları desteklenir. |
This file contains hidden or 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
#!/usr/bin/env python3.6 | |
# coding: utf-8 | |
""" | |
Çok Satırlı yorum: | |
Python Guido Van Rossum tarafından 90'ların başında geliştirilmeye | |
başlanmıştır. | |
""" | |
# Bu da bir tek satırlık yorum örneğidir. |
This file contains hidden or 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
PARAM = ARGV[0] | |
SAYI = ARGV[1].to_i | |
def fibo(n) | |
(2..n).reduce([0, 1]) { |bellek| bellek << bellek.last(2).reduce(:+) } | |
end | |
if __FILE__ == $0 | |
case PARAM |
This file contains hidden or 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
# coding: utf-8 | |
# Tek satırlık yorum yazmak için # kullandık | |
# Version: Ruby-2.4.1 | |
=begin | |
Ruby Programlama Dili, 1995 itibariyle yayınlaşmış, | |
Matsumoto Yukihiro (Japoncada soyad önce söylenir) | |
tarafından geliştirilmeye başlanmış özgür bir projedir. | |
Bu da bir çok satırlı yorumdur. |
This file contains hidden or 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
package main //Çalıştrılacak her Go kaynak dosyasında yer almalıdır. | |
// Go Dilinde tek satırlık yorum/açıklama | |
import ( | |
"fmt" // Standart kütüphaneyi projemize dahil ettik | |
"io/ioutil" // Temel io işlemleri | |
"log" // log | |
"math" // Matematiksel işlem ve değer tanımlarını içeren kütüphaneyi içe aktardık | |
"net/http" | |
"os" // İşletim sistemi işlemleri |
This file contains hidden or 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
func Round(val float64, roundOn float64, places int ) (newVal float64) { | |
var round float64 | |
pow := math.Pow(10, float64(places)) | |
digit := pow * val | |
_, div := math.Modf(digit) |
OlderNewer