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
| # 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 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
| ... | |
| 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 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
| 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 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
| class AuthApi < Sinatra::Base | |
| get 'ping' do | |
| "pong" | |
| end | |
| get 'ping2' do | |
| "pong2" | |
| 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
| void rb_define_method(VALUE klass, const char *name, VALUE (*func)(), int argc) |
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
| 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 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
| 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 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
| test vim gist |
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
| def save_css_xhr | |
| file = @s_site.css_file(:write => true) | |
| file.write(params[:code]) | |
| file.close | |
| respond_to do |format| | |
| format.js { } | |
| end | |
| 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
| ActionMailer::Base.delivery_method = :smtp | |
| ActionMailer::Base.smtp_settings = { | |
| :enable_starttls_auto => true, | |
| :port => 587, | |
| :address => "mx.yandex.net", | |
| :user_name => "test@example.com", | |
| :password => "12345", | |
| :domain => "example.com", | |
| :authentication => :plain | |
| } |