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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import json | |
import logging | |
from multiprocessing.pool import ThreadPool | |
from pathlib import Path | |
import re | |
import requests |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import time | |
import pyautogui as gui | |
def loading_line(iteration=1, message='Running...'): |
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
#!/usr/bn/env python3 | |
# coding: utf-8 | |
import json | |
import struct | |
DICT_NAMES = ["star_nhatviet", "star_vietnhat"] | |
DICT_JSON = { | |
name: { | |
"bookname": "", | |
"wordcount": "", |
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
{ | |
"apiVersion": "0.0.1", | |
"info": { | |
"name": "Hoc Vien Truyen Tranh", | |
"short_name": "HVTT", | |
"icon": "http://hocvientruyentranh.net/frontend/images/favicon.png", | |
"lang": "Vietnamese", | |
"origins": [ | |
"http://hocvientruyentranh.net" | |
], |
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
#!/usr/bin/env bash | |
# input username, password, group name, repository name through arguments in order | |
cp -r .git ../.git | |
git remote rm origin | |
git remote add origin https://$1:$2@bitbucket.org/$3/$4.git | |
git push origin --force --all | |
git push --tags | |
rm -r .git | |
mv ../.git .git |
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
# This file is a template, and might need editing before it works on your project. | |
# Read more about this script on this blog post https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/, by Greyson Parrelli | |
image: mingc/android-build-box:latest | |
variables: | |
ANDROID_COMPILE_SDK: "25" | |
GRADLE_OPTS: '-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true' | |
before_script: | |
- chmod +x ./gradlew |
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
image: mingc/android-build-box:latest | |
pipelines: | |
default: | |
- step: | |
script: # Modify the commands below to build your repository. | |
# You must commit the Gradle wrapper to your repository | |
# https://docs.gradle.org/current/userguide/gradle_wrapper.html | |
- export GRADLE_OPTS='-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Dorg.gradle.jvmargs="-Xmx2048m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true' | |
- chmod +x gradlew |
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
image: openjdk:8-jdk | |
variables: | |
LANG: "en_US.UTF-8" | |
ANDROID_HOME: "/opt/android-sdk" | |
ANDROID_NDK_HOME: "/opt/android-sdk/ndk-bundle" | |
ANDROID_COMPILE_SDK: "26" | |
ANDROID_BUILD_TOOLS: "26.0.1" | |
ANDROID_SDK_TOOLS: "26.0.2" | |
ANDROID_NDK_VERSION: "16-beta1" |
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
# | |
# Build configuration for Circle CI | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/your-repository-name-here/app/build/outputs/apk/ | |
machine: | |
environment: |
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
var links = []; | |
var viewIndex = 0; | |
var loadIndex = 0; | |
//Called when application is started. | |
function OnStart() | |
{ | |
lay = app.CreateLayout( "linear", "VCenter,FillXY" ); | |
//Scroller |