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
/* | |
This function split a string into multi part, each part start with(exclude) $start and end with(exclude) $end. | |
$end is optional. | |
Thanks @zenozeng for backend code at QSC mobile. (function get_between) | |
*/ | |
function gets_between($start, $end, $content) { | |
$r = explode($start, $content); | |
$arr = array(); |
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
package com.richard1993.android.inputhack; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.net.nsd.NsdManager; | |
import android.net.nsd.NsdServiceInfo; | |
import android.os.IBinder; | |
import android.util.Log; | |
import java.io.BufferedInputStream; |
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
for line in `find . -iname '*.svg';` | |
do | |
for dpi in 90 180 360 720 | |
do | |
inkscape -z -f "${line}" --export-png="png/${line}_${dpi}.png" -d "${dpi}" | |
done | |
done |
NewerOlder