- Herşey bir
Object(Nesne) - Her
ObjectBasicObjectden türemiş. (Objective-C NSObject gibi...) Object.methodsile o nesneye ait tüm method'larObject.methods.inspectstring olarak method'lar- Mutlaka bir şey geriye döner. Hiçbir şey dönmese
nildöner.
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
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <title>Nice Buttons</title> | |
| <style> | |
| * { margin: 0; padding: 0; } | |
| ul { | |
| padding: 20px; | |
| width: 80px; | |
| float: left; |
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
| // HTML: | |
| <div class="display-type"></div> | |
| // CSS: | |
| // set the content of an element depending on the media query |
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 'rss' | |
| require 'open-uri' | |
| titles = [] | |
| open('http://safran-beta.herokuapp.com/feed.rss') { |rss| titles = RSS::Parser.parse(rss).items.collect(&:title) } | |
| `say Safranda bugün` | |
| titles.each{|title| `say "#{title.gsub(/"/,'').squeeze(' ')}"`; sleep 0.5} |
fluid-aspect is a Sass mixin for creating intrinsic ratios in CSS. Intrinsic ratios allow elements to fill the width of their containing block and resize on the fly while maintaining their aspect ratio.
@include fluid-aspect($ratio, [$target]);- $ratio: An aspect ratio represented as two numbers separated by a space. Defaults to 1:1
- $target: A selector targeting the element to be made fluid. Defaults to "> :first-child"