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
interface Direnebilme { | |
public void diren(); | |
} | |
interface HakkiniArayabilme { | |
public void hakkiniAra(); | |
} | |
interface BariscilEylemYapabilme { | |
public void bariscilEylemYap(); |
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
public class DowncastingExample { | |
public static void main(String args[]) { | |
Object[] o = new Object[2]; | |
o[0] = new Hayvan(); // upcasting | |
o[1] = new Kedi(); // upcasting | |
Hayvan a2 = (Hayvan) o[0]; // downcasting | |
Kedi a3 = (Kedi) o[1]; // downcasting |
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
public class DowncastingExample { | |
public static void main(String args[]) { | |
Object a = new Hayvan(); | |
Hayvan b = (Hayvan) a; // aşağıya çevirim, downcasting | |
} | |
} |
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
void rb_define_method(VALUE klass, const char *name, VALUE (*func)(), int argc) |
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
class AuthApi < Sinatra::Base | |
get 'ping' do | |
"pong" | |
end | |
get 'ping2' do | |
"pong2" | |
end |
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
app/assets/javascripts/admin klasöründe olması gereken js dosyaları: | |
# jquery-ui-i18n.min.js | |
# jquery-ui-sliderAccess.js (timepicker) | |
# jquery-ui-timepicker-addon.js (timepicker) | |
# jquery-ui-timepicker-tr.js (timepicker) | |
Timepicker: https://github.com/trentrichardson/jQuery-Timepicker-Addon | |
app/assets/images/admin/images klasöründe olması gereken resim dosyaları: |
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
... | |
prepend domain-name-servers 127.0.0.1, 8.8.8.8, 8.8.4.4, 208.67.222.222, 208.67.220.220, 208.67.222.220, 208.67.220.222; | |
... |
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
# BSON::ObjectId('5101b247c0a8050e1496f7fa') | |
# | |
# 5101b247 c0a8050e 1496 f7fa | |
# | |
# * timtestamp = 0x5101b247 # => 1359065671 | |
# * src_ip = 0xc0a8050e # => 192.168.5.14 | |
# * src_port = 0x1496 # => 5270 | |
# * dst_port = 0xf7fa # => 63482 |
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
# encoding: utf-8 | |
require 'json' | |
require 'mongo' | |
@conn = Mongo::Connection.new("localhost", 27017, safe: true) | |
@db = @conn['timestamp_test'] | |
@coll = @db['test_col'] | |
@coll.save({a: BSON::Timestamp.new(4294967295, 4294967295)}) |
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
> db.test_col.find() | |
{ "_id" : ObjectId("51012a6d8d74494bd8000001"), "a" : Timestamp(4294967295000, 4294967295) } |