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
(async () => { | |
for (let i = 0; i < 100; i++) { | |
await something(i) | |
await delay(i); | |
} | |
console.log("LOOP FINISHED"); | |
})(); |
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
select sku, group_concat(itemid) as itemids | |
from rfq_pipeline | |
left join candidate_skus using (sku) | |
group by sku limit 200 |
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 solution($A) { | |
// write your code in PHP7.0 | |
$a = 0; | |
$c = count($A); | |
for( $i = 0; $i <= $c; $i++ ){ | |
if( $A[$i] <= ( current($A) + 1 ) ){ | |
$a++; | |
} | |
} |
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
exec gamemode_casual | |
changelevel de_dust2 | |
bot_kick | |
mp_forcecamera 1 | |
mp_freezetime 10 | |
mp_maxrounds 100 | |
mp_roundtime 1.92 |
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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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 Src\Cache; | |
/** | |
* Dependency Injection Container | |
*/ | |
class 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 | |
function solution($N) { | |
//asuming $N is a range of numbers integr | |
for ($i = 1; $i <= $N; $i++){ | |
if( $i%3 == 0 && $i%5 == 0 && $i%7 == 0 ){ | |
echo "FizzBuzzWoof\n"; | |
}elseif( $i%3 == 0 && $i%5 == 0){ | |
echo "FizzBuzz\n"; | |
}elseif($i%3 == 0 && $i%7 == 0){ |
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 solution($A) { | |
$i = 0; | |
$k = 0; | |
$arr_count = count($A); | |
for( $j = 0;$j<=$arr_count;$j++ ){ | |
$k = $A[$i]; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
tr > td { | |
height: 30px; | |
width:30px; | |
align: center; |
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 | |
$handle = fopen ("php://stdin","r"); | |
fscanf($handle,"%d",$n); | |
$a = array(); | |
for($a_i = 0; $a_i < $n; $a_i++) { | |
$a_temp = fgets($handle); | |
$a[] = explode(" ",$a_temp); | |
array_walk($a[$a_i],'intval'); | |
} |
NewerOlder