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
program vnanswer; | |
uses crt; | |
var n, i: longint; | |
s, s1, s2: extended; | |
begin | |
clrscr; | |
write('Nhap n: '); | |
readln(n); | |
for i:=1 to n do begin | |
s1:=s1+(i*i); |
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
program vnanswer2; | |
uses crt; | |
var t, t2, tout: text; | |
s: string; | |
sl, inp: longint; | |
begin | |
clrscr; | |
assign(t, 'hoten.txt'); | |
reset(t); | |
assign(t2, 'sanpham.dat'); |
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
wget -E -H -k -p -e "robots=off" -nc --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36" -T 360 "http://vozforums.com/showthread.php?t=3485792&page="{1..785} |
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
# | |
# Usage: python heartbleed.py <host> | |
# | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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
tuankiet65@fedora20pc:~/wtt$ python ../heartbleed.py stardaily.vn | |
0000: 02 40 00 D8 03 02 53 43 5B 90 9D 9B 72 0B BC 0C [email protected][...r... | |
0010: BC 2B 92 A8 48 97 CF BD 39 04 CC 16 0A 85 03 90 .+..H...9....... | |
0020: 9F 77 04 33 D4 DE 00 00 66 C0 14 C0 0A C0 22 C0 .w.3....f.....". | |
0030: 21 00 39 00 38 00 88 00 87 C0 0F C0 05 00 35 00 !.9.8.........5. | |
0040: 84 C0 12 C0 08 C0 1C C0 1B 00 16 00 13 C0 0D C0 ................ | |
0050: 03 00 0A C0 13 C0 09 C0 1F C0 1E 00 33 00 32 00 ............3.2. | |
0060: 9A 00 99 00 45 00 44 C0 0E C0 04 00 2F 00 96 00 ....E.D...../... | |
0070: 41 C0 11 C0 07 C0 0C C0 02 00 05 00 04 00 15 00 A............... | |
0080: 12 00 09 00 14 00 11 00 08 00 06 00 03 00 FF 01 ................ |
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
#!/usr/bin/env python2 | |
# A04 Decoder Logic by monocle with modifications from tuankiet65 | |
import hashlib | |
import sys | |
from subprocess import check_output | |
f=open(sys.argv[1] + ".txt", 'r') | |
string = f.read() | |
f.close() |
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
import random | |
import subprocess | |
import sys | |
flag=False | |
count=0 | |
numA=0 | |
numB=0 | |
numNum=0 | |
res=[] |
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
uses crt; | |
const keyUp=72; | |
keyDown=80; | |
keyLeft=75; | |
keyRight=77; | |
highscoreFile='2048_highscore.txt'; | |
type board_type=record | |
size_h: longint; | |
size_v: longint; | |
board: array [-1..128, -1..128] of integer; |
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
#define TRIGGER_PIN 2 | |
#define ECHO_PIN 3 | |
void ultrasound_init(){ | |
pinMode(TRIGGER_PIN, OUTPUT); | |
pinMode(ECHO_PIN, INPUT); | |
} | |
int ultrasound_read(){ | |
digitalWrite(TRIGGER_PIN, LOW); | |
delayMicroseconds(10); |
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
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:21: error: package android.support.annotation does not exist | |
import android.support.annotation.NonNull; | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:21: error: cannot find symbol | |
import android.app.Fragment; | |
^ | |
symbol: class Fragment | |
location: package android.app | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:32: error: package android.support.test.internal.runner.hidden does not exist | |
import android.support.test.internal.runner.hidden.ExposedInstrumentationApi; |