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 foo(bar) | |
#Hoe moet je IDE nu weten wat voor type bar is? | |
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
var Set = function() { | |
this.items = {}; | |
this.add = function(key) { | |
this.items[key] = true; | |
} | |
this.exists = function(key) { | |
return this.items.hasOwnProperty(key); | |
} | |
this.as_array = function() { | |
var keys = []; |
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
<?php | |
/** @var Model_Test foo */ | |
$foo = Model::factory('test') |
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
* 662f884 (HEAD, master) Merge branch 'upstream' | |
|\ | |
| * 546d817 (upstream) Merging feature C | |
| |\ | |
| * \ ccd36df Merging feature B | |
| |\ \ | |
| * | | 0b57665 Upstream work | |
* | | | 657fc39 Merging feature C | |
|\ \ \ \ | |
| | |_|/ |
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
* b48474b (HEAD, integration) Merging feature C | |
|\ | |
* \ 959996b Merging feature B | |
|\ \ | |
| | | * 546d817 (upstream) Merging feature C | |
| | | |\ | |
| | | |/ | |
| | |/| | |
| | * | e096804 (feature/C) Feature C | |
| |/ / |
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
* b48474b (integration) Merging feature C | |
|\ | |
* \ 959996b Merging feature B | |
|\ \ | |
| | | * 546d817 (HEAD, upstream, master) Merging feature C | |
| | | |\ | |
| | | |/ | |
| | |/| | |
| | * | e096804 (feature/C) Feature C | |
| |/ / |
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
* 546d817 (HEAD, upstream, master) Merging feature C | |
|\ | |
| * e096804 (feature/C) Feature C | |
* | ccd36df Merging feature B | |
|\ \ | |
| * | e5085f5 (feature/B) Add feature B | |
| |/ | |
* | 0b57665 Upstream work | |
|/ | |
* 7db78f1 initial commit |
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
When populating a new submodule directory with "git submodule init", | |
the $GIT_DIR metainformation directory for submodules is created inside | |
$GIT_DIR/modules/<name>/ directory of the superproject and referenced | |
via the gitfile mechanism. This is to make it possible to switch | |
between commits in the superproject that has and does not have the | |
submodule in the tree without re-cloning. |
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 test(): | |
... return (1, 2, 3) | |
... | |
>>> a = test() | |
>>> print(a) | |
(1, 2, 3) | |
>>> a, b, c = test() | |
>>> print(a) | |
1 |
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
Route::set('bar', '/bar') | |
->defaults(array( | |
'directory' => 'foo', | |
'controller' => 'bar', | |
'action' => 'index', | |
)); | |
//Controller should be called Controller_Foo_Bar in directory /controller/foo/bar.php |