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 | |
#author taylorcyang@tencent.com | |
#def | |
IJK_PROJECT_DIR=ijkplayer | |
SO_LIB_PATH=android/ijkmediaplayer/libs/armeabi-v7a | |
PROJECT_LIBS_DIR=../libs/armeabi | |
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
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.2.0' | |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files |
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
# 30 minutes Lisp in Ruby | |
# Hong Minhee <http://dahlia.kr/> | |
# | |
# This Lisp implementation does not provide a s-expression reader. | |
# Instead, it uses Ruby syntax like following code: | |
# | |
# [:def, :factorial, | |
# [:lambda, [:n], | |
# [:if, [:"=", :n, 1], | |
# 1, |
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 | |
# encoding: utf-8 | |
# depends on | |
# pip install pillow numpy | |
from PIL import Image | |
import numpy as np | |
import sys |
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 | |
#author taylorcyang@tencent.com | |
#download project | |
git clone https://github.com/Bilibili/ijkplayer.git | |
#enter work directory | |
cd ijkplayer |
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 | |
######################################################################### | |
# File Name: ramdisk.sh | |
# Author: Landerl Young | |
# e-Mail: LanderlYoung@gmail.com | |
# Created Time: Wed Aug 22 15:08:28 2018 | |
######################################################################### | |
VOLUME=RAM_DISK | |
RAMDISK_LOCATION=/Volumes/$VOLUME |
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 | |
#-------------------- | |
# Standard options: | |
export COMMON_FF_CFG_FLAGS= | |
# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --prefix=PREFIX" | |
# Licensing options: | |
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-gpl" | |
# export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-version3" |
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 kscript | |
@file:DependsOn("com.xenomachina:kotlin-argparser:2.0.7") | |
@file:DependsOn("me.tongfei:progressbar:0.7.1") | |
import com.xenomachina.argparser.ArgParser | |
import com.xenomachina.argparser.InvalidArgumentException | |
import com.xenomachina.argparser.SystemExitException | |
import com.xenomachina.argparser.default |
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
/* | |
* Copyright (C) 2018 Square, Inc. | |
* Copyright (C) 2019 taylorcyang@tencent.com | |
* Copyright (C) 2019 landerlyoung@gmail.com | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.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
String httpGet(String url) throws IOException { | |
URL u = new URL(url); | |
URLConnection conn = u.openConnection(); | |
InputStream input = conn.getInputStream(); | |
byte[] buffer = new byte[1024]; | |
int len = input.read(buffer); | |
input.close(); | |
return new String(buffer, 0, len); |
OlderNewer