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
Movement: | |
j, k down, up | |
h, l left, right (in some contexts) | |
space page down | |
pg up/down page up/down | |
arrows up, down, left, right |
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
import os | |
import re | |
import sys | |
symbolMap = { | |
'а': 'a', | |
'б': 'b', | |
'в': 'v', | |
'г': 'g', | |
'д': 'd', |
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
import random | |
TRUE_ANSWER = 1 | |
GAMES_COUNT = 1000000 | |
DOORS_COUNT = 5 | |
def gen(ans): | |
answer = [0, 0, 0, 0, 0, 0] | |
answer[ans] = 1 | |
return answer |
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 | |
is_int() { | |
re='^[0-9]+$' | |
if ! [[ $1 =~ $re ]] | |
then | |
echo 1 | |
else | |
echo 0 | |
fi |
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 | |
send_request() { | |
lowerLimit=$1 | |
upperLimit=$2 | |
while [ "$lowerLimit" -le "$upperLimit" ]; | |
do | |
curl -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer tKhsfeRDTqvr02aRNO3PjA88jE28PscZvT2RIxoj8JixtDSJCFlvVU3pzh5pWlVQ' -H 'Accept: application/json' -d "$(generate_request $lowerLimit)" 'http://videoapp.itcraftlab.com/api/v1/request' ; | |
lowerLimit=$(($lowerLimit + 1)) | |
done |
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
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
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 change the parent around to whatever you normally use --> | |
<style name="DebugColors" parent="Theme.AppCompat"> | |
<!-- System colors --> | |
<item name="android:windowBackground">@color/__debugWindowBackground</item> | |
<item name="android:colorPressedHighlight">#FF4400</item> | |
<item name="android:colorLongPressedHighlight">#FF0044</item> | |
<item name="android:colorFocusedHighlight">#44FF00</item> | |
<item name="android:colorActivatedHighlight">#00FF44</item> |
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://dshinin.ru/Upload_Books2/Books/2008-07-15/200807152203201.PDF |
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
import os | |
import re | |
import sys | |
def main(argv = sys.argv): | |
if len(argv) <= 1: | |
print("Too few arguments") | |
sys.exit(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
public interface OnTimerTickListener { | |
void onTick(); | |
} |