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 | |
function equi ( $A ) { | |
$countA = count($A); | |
$forwardSum = array(); | |
$backwardSum = array(); | |
for ($i = 0; $i < $countA; $i++) { | |
if ($i == 0) { | |
//$forwardSum[$i] = $A[$i]; | |
$forwardSum[0] = 0; | |
} else { |
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 InvoiceManager | |
{ | |
private $em; | |
private $invoiceRepo; | |
private $highValue; | |
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 | |
$startTime = time(); | |
$finalResults = array(); | |
for ($j = 0; $j < 1000000; $j++) { | |
do { | |
$candidate = getToken(); | |
} while (array_key_exists($candidate, $finalResults)); |
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 can use this query : | |
SELECT table_name AS "Table", | |
round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" | |
FROM information_schema.TABLES | |
WHERE table_schema = "$DB_NAME" | |
AND table_name = "$TABLE_NAME"; | |
#... in order to know the size of a table and that : |
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
PS1='\@ ${debian_chroot:+($debian_chroot)}\[\033[0;33m\]\u\[\033[0m\]@\[\033[0;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ ' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.11764705926179886</real> | |
<key>Green Component</key> | |
<real>0.11372549086809158</real> |
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
# INITIAL QUERY | |
SELECT *, | |
( | |
( | |
ACOS( | |
SIN($LAT * Pi() / 180) | |
* SIN(latitude * Pi() / 180) | |
+ | |
COS($LAT * Pi() / 180) | |
* COS(latitude * Pi() / 180) |
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
// | |
// Spectator Hero Keys Dota 2 Config | |
// | |
// by Naikoh | |
// | |
bind "1" "dota_spectator_hero_index 0" | |
bind "2" "dota_spectator_hero_index 1" | |
bind "3" "dota_spectator_hero_index 2" |
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
༼ つ ◕_◕ ༽つ giff diretide | |
༼ つ ◕◡◕ ༽つ got diretide | |
(╯°□°)╯︵ ┻━┻ | |
ʕ •ᴥ•ʔ | |
┬─┬ ノ( ゜-゜ノ) | |
_____. | |
~(_]---' | |
/_(U | |
(ง ˘ᴗ˘ )ว | |
(ว ˘ᴗ˘ )ง |
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 foo(x, y) { | |
ajax( | |
"http://some.url/?x=" + x + "&y=" + y, | |
function(err, data) { | |
if (err) { | |
it.throw(err); | |
} else { | |
it.next(data); | |
} | |
} |
OlderNewer