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 Controller { | |
public function run () | |
{ | |
SomeLibrary::accidentalStatic(); | |
} | |
public function __toString () | |
{ |
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 | |
function monitor ($file) | |
{ | |
$last = filemtime($file); | |
$command = trim(`which php`); | |
$command .= " -f " . $file; | |
$command .= ' 2>&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
{ | |
type: 'cluster', | |
members: [ | |
{ | |
type: 'shard', | |
members: [ | |
{ | |
type: 'mongod', | |
name: 'shard1' | |
}, |
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
{ | |
'mongod': [ | |
{'ip': '1.2.3.4:1234'}, | |
{'ip': '1.2.3.4:1234'}, | |
{'ip': '1.2.3.4:1234'} | |
], | |
'config': [ | |
{'ip': '1.2.3.4:1234'}, | |
{'ip': '1.2.3.4:1234'}, |
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 Colors { | |
private $foreground_colors = array(); | |
private $background_colors = array(); | |
public function __construct() { | |
// Set up shell colors | |
$this->foreground_colors['black'] = '0;30'; | |
$this->foreground_colors['dark_gray'] = '1;30'; |
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
<script> | |
$(document).ready(function() { | |
$(".boton") | |
.bind("touchstart", function () { | |
$(this).addClass("active"); | |
}) | |
.bind("touchend", function() { | |
$(this).removeClass("active"); | |
}) | |
.bind("touchcancel", function() { |
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
ini_set('log_errors', 'On'); | |
ini_set('error_log', __DIR__ . '/phperrors.log'); | |
ini_set('log_errors_max_len', 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
CSS: | |
#preview-foot { | |
position:absolute; | |
border:1px solid #ccc; | |
background:#333; | |
padding:5px; | |
display:none; | |
color:#fff; |
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
((320*320) * 10) * 0.073 |
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
>>> a = None | |
>>> type(a) | |
<type 'NoneType'> | |
>>> a = 1 | |
>>> type(a) | |
<type 'int'> | |
>>> a = "angelo" | |
>>> type(a) |