- Dependency Injection
- Route
- Templates
- Binding
- Directive
- Filter
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
A systematic literature review (often referred to as a systematic review) is a means of identifying, evaluating and interpreting all available research relevant to a particular research question, or topic area, or phenomenon of interest. Individual studies contributing to a systematic review are called primary studies; a systematic review is a form of secondary study. | |
Systematic reviews start by defining a review protocol that specifies the research question being addressed and the methods that will be used to perform the review. | |
• Systematic reviews are based on a defined search strategy that aims to detect as much of the relevant literature as possible. | |
• Systematic reviews document their search strategy so that readers can assess their rigour and the completeness and repeatability of the process (bearing in mind that searches of digital libraries are almost impossible to replicate). | |
• Systematic reviews require explicit inclusion and exclusion criteria to assess each potential primary study. | |
• Systema |
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
#You have seen something like this, if null replace with a blank array | |
an_array = (another_array || [] ) + (yet_another_array || []) | |
#But you could do this as well | |
an_array = another_array.to_a + yet_another_array.to_a | |
#Or you have seen this | |
an_array = another_array + (an_element_or_array.is_a?(Array) ? an_element_or_array : [an_element] ) |
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
#the new tap method of ruby will always return itself, but lets you play with! | |
data = (1..10).to_a | |
data.tap{|x| print x}.to_a.join(', ') | |
p | |
#alias will redirect method calls to method with a different name, useful for api changing | |
class SomeClass | |
def new_method(x) | |
p "The value is #{x}" |
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
#the new tap method of ruby will always return itself, but lets you play with! | |
data = (1..10).to_a | |
data.tap{|x| print x}.to_a.join(', ') | |
p | |
#alias will redirect method calls to method with a different name, useful for api changing | |
class SomeClass | |
def new_method(x) | |
p "The value is #{x}" |
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
Which version is more readable? | |
[Flags] | |
public enum HttpVerbs { | |
Get = 1 << 0, | |
Post = 1 << 1, | |
Put = 1 << 2, | |
Delete = 1 << 3, | |
Head = 1 << 4 | |
} |
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
-- Build text string | |
set s to "<li>" | |
tell application "NetNewsWire" | |
set s to s & "<a href=\"" & (URL of selectedHeadline) & "\">" | |
set s to s & (title of selectedHeadline) & "</a>" | |
set s to s & (creator of selectedHeadline) | |
end tell | |
set s to s & "</li>" | |
-- Set the contents to the ClipBoard |
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
#light | |
open System | |
type Game()= | |
member this.NewScore(winnersScore, othersScore)= | |
match winnersScore with | |
|"0" -> "15", othersScore | |
|"15" -> "30", othersScore | |
|"30" -> "40", othersScore |
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 Weather | |
attr_accessor :temperature, :humidity | |
def initialize another_weather | |
self.temperature = another_weather.temperature | |
self.humidity = another_weather.humidity | |
end | |
end |
OlderNewer