- http://blog.stephencleary.com/2013/08/startnew-is-dangerous.html
- https://richnewman.wordpress.com/2012/12/03/tutorial-asynchronous-programming-async-and-await-for-beginners/
- https://msdn.microsoft.com/en-us/magazine/dn818494.aspx
- http://www.javacodegeeks.com/2015/10/testing-asynchronous-code.html
- http://xunitpatterns.com/Humble%20Object.html
- https://bugzilla.xamarin.com/show_bug.cgi?id=8112#c1
- https://forums.xamarin.com/discussion/31668/android-java-binding-change-method-signature
- http://stackoverflow.com/questions/27917681/xamarin-jar-binding-error-class-does-not-implement-interface-member
- https://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding-a-java-library/troubleshooting-bindings/
- https://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding-a-java-library/creating-bindings-using-metadata/
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 | |
interface InputStream | |
{ | |
public function close(); | |
public function read($numberOfBytes); | |
public function skip($numberOfBytes); | |
} | |
interface MarkableStream |
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
#!/bin/bash | |
COUNTER=1 | |
for i in $(git log --oneline | cut -d" " -f 1); do | |
let COUNTER+=1 | |
if [ "$i" = "$1" ]; then | |
echo "$COUNTER" | |
fi | |
done |
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 | |
class SitemapDecorator extends Sitemap | |
{ | |
private $decoratedClass = null; | |
public function __construct(Sitemap $sitemap) | |
{ | |
$this->decoratedClass = $sitemap; | |
} |
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 tabs = require("sdk/tabs"); | |
tabs.on('open', function(tab) { | |
tab.index = tabs.activeTab.index + 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
<?php | |
class PosixErrorCode | |
{ | |
const EPERM = 1; /* Operation not permitted */ | |
const ENOENT = 2; /* No such file or directory */ | |
const ESRCH = 3; /* No such process */ | |
const EINTR = 4; /* Interrupted system call */ | |
const EIO = 5; /* Input/output error */ | |
const ENXIO = 6; /* Device not configured */ |
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 | |
class FibonacciValidator | |
{ | |
public function isFibonacci($number) | |
{ | |
$positiveVerification = (5 * pow($number, 2) + 4); | |
$negativeVerification = (5 * pow($number, 2) - 4); | |
return ($positiveVerification % 4 == 0 || $negativeVerification % 4 == 0); |
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
function GoToTest(...) | |
let filename = expand('%:t:r') | |
let test_filename = filename."Test.php" | |
"You can use a folder to avoid tabf to open the wrong file | |
if a:0 > 0 | |
execute "tabf **/".a:1."/".test_filename | |
else | |
execute "tabf **/".test_filename | |
endif | |
endfunction |