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
1. 'e' ve 'x' arasindaki harflerden 7 haneli random string ureten bir fonksiyon yaziniz | |
2.1.1 :123 > (0...7).map { ('e'..'x').to_a[rand(20)] }.join | |
=> "tjtwnpg" | |
2. Verilen string'in gecerli mail adresi oldugunu denetleyen bir fonksiyon yaziniz. (Ipucu: Regex) | |
2.1.1 :365 > def is_a_valid_email?(email) |
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
1. Ruby 2.0.0-p452'de assingment3 adlı bir gemset oluşturunuz. Faker adlı gem'i yükleyiniz. | |
452 yok 481 yüklendi. | |
********************************************************************************************* | |
muratatak@muratatak ~ $ rvm install ruby-2.0.0-p481 | |
Searching for binary rubies, this might take some time. | |
No binary rubies available for: mint/15/x86_64/ruby-2.0.0-p481. |
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
1. RVM'i kullanarak, Ruby'nin 1.9.3-p452 versiyonunu kurunuz. | |
******************************************************************************************************************* | |
452 patchine yok dedi. 1.9.3 dedik 55 uzantılı patchi kurdu. | |
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
1. Mercedes ve Ferrari adlı iki sınıfımız olsun. Bu sınıflar, Car sınıfının bütün özelliklere sahip olsun. | |
2. Mercedes ve Ferrari sınıflarından bir nesne oluşturulurken, otomatik olarak brand alanı ilgili markaya karşılık gelsin. | |
Örnek: |
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
1. Assignment5 diye bir klasor olusturalim assignments altimda. Buna bir alias atayalim a5 yazinca ona girsin. | |
Applications Desktop Documents Downloads Library Movies Music Pictures Public assignment | |
➜ ~ cd Documents/ror | |
➜ ror ls | |
Mercedes.rb assgmnt-5 ctesi-asgn lesson-3-questionss | |
ara-asgnm assignment3 ders2.txt lesson3.rb | |
asgmn3 class Car ders3.txt muratatak@muratatak ~ $ rvm gemset list | |
assg4 classCar.rb gallery.rb rvrs.rb | |
➜ ror cd assgmnt-5 |
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
Excel File Format : | |
Id Ad Soyad GSM Email Adress | |
1 MURAT ATAK 34534546 muratatak77@gmail.com istanbul | |
2 ZEHRA ATAK 3645756756 zehrabetul77@gmail.com istanbul | |
3 MURAT ATAK 42343453489 erthb@gmail.com istanbul | |
:003 > s = Roo::Excel.new("personel2.xls") |
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
try { | |
var orders = []; | |
var tracking_grp_orders = []; | |
var orders_count = 0 ; | |
var email = req.user.local.email; | |
logger.info(utils.calling(filename,methods.index.value),' / user : ', email); | |
logger.info("All orders displaying / user : ", email); |
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
CompanySchema | |
.path('tv_broadcasters') | |
.validate(function(value, respond) { | |
var self = this; | |
this.constructor.find({ | |
tv_broadcasters: { | |
$in: value | |
}, | |
_id: { |
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
## If specific android | |
# before_action do |controller| | |
# agent = request.env['HTTP_USER_AGENT'] | |
# puts "agent :::: #{agent}" | |
# if request.env['HTTP_USER_AGENT'].downcase.match(/iphone/) | |
# puts "iphone geldi. JWT check ..." | |
# jwt_validation | |
# elsif request.env['HTTP_USER_AGENT'].downcase.match(/android/) | |
# puts "Android geldi. Serbest gecis ....." | |
# else |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
OlderNewer