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
# http://us.battle.net/forums/en/wow/topic/8873728013 | |
defaults write com.blizzard.worldofwarcraft DesktopModeIsDefault 1 |
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
/equipset Mistweaver | |
/run SetActiveSpecGroup(2); | |
/run ShowHelm(1); |
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 ContainsElements<T> extends ArgumentMatcher<Collection> { | |
private Collection<T> expected; | |
public ContainsEqualElements(Collection<T> expected) { | |
this.expected = expected; | |
} | |
public boolean matches(Object list) { | |
if (list instanceof Collection) { | |
Collection<T> actual = (Collection<T>) list; | |
return actual.size() == expected.size() && actual.containsAll(expected) && expected.containsAll(actual); | |
} |
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
function rfc3339(d) { | |
function pad(n) { | |
return n < 10 ? "0" + n : n; | |
} | |
function timezoneOffset(offset) { | |
var sign; | |
if (offset === 0) { | |
return "Z"; |
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
<?php | |
class Responder | |
{ | |
/** | |
* @param int $statusCode | |
* @param array $headers | |
* @param string|callable $body | |
*/ | |
public function respond($statusCode, $headers = null, $body = "") |
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
/** | |
* Returns an array of control points for use with Imagick::distortImage | |
* | |
* Offset floats describe the proportions between 0.0 and 1.0 to move the | |
* given anchor point toward the opposite corner of the image. For example, | |
* an image of size 100x100. $topLeftOffsetX = .2, $topLeftOffsetY = .5 | |
* will move the top left corner down and right from (0,0) to (20,50). | |
* $bottomRightOffsetX = .2, $bottomRightOffsetY will move the bottom right | |
* corner up and left from (100,100) to (80,50). | |
* |
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
sed -E 's/\\n/\n/g' |
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
{"lastUpload":"2020-06-18T22:29:09.889Z","extensionVersion":"v3.4.3"} |
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
<?php | |
namespace MyNamespace; | |
/** | |
* Dependency injection container | |
*/ | |
class Container extends \Pimple\Container | |
{ | |
/** |
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
<?php | |
/** | |
* Return the number of references for a variable's zval | |
* | |
* @param mixed $var Variable to inspect | |
* @return int Number of references according to debug_zval_dump | |
*/ | |
function refCount($var) | |
{ |
NewerOlder