- 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.
##Refs
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 'cgi' | |
| require 'fileutils' | |
| desc 'Generate a code review.' | |
| # Uses rake code_review[master,qa] by default | |
| task :code_review, :left_branch, :right_branch do |cmd, args| | |
| left_branch = ( args[:left_branch] || "master" ) | |
| right_branch = ( args[:right_branch] || "qa" ) | |
| gp = GitParser.new(left_branch, right_branch) | |
| gp.fancy_full_diff |
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
| // ==UserScript== | |
| // @name Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> | |
| // @link http://git.io/data-markdown | |
| // @match * | |
| // ==/UserScript== | |
| // If you're not using this as a userscript just delete from this line up. It's cool, homey. |
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 Api::RegistrationsController < Api::BaseController | |
| respond_to :json | |
| def create | |
| user = User.new(params[:user]) | |
| if user.save | |
| render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
| return | |
| else |
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
| # Runs a specified shell command in a separate thread. | |
| # If it exceeds the given timeout in seconds, kills it. | |
| # Returns any output produced by the command (stdout or stderr) as a String. | |
| # Uses Kernel.select to wait up to the tick length (in seconds) between | |
| # checks on the command's status | |
| # | |
| # If you've got a cleaner way of doing this, I'd be interested to see it. | |
| # If you think you can do it with Ruby's Timeout module, think again. | |
| def run_with_timeout(command, timeout, tick) | |
| output = '' |
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
- Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
NewerOlder