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
apply plugin: 'com.android.library' | |
android { | |
compileSdkVersion 'Google Inc.:Google APIs:22' | |
Properties localProps = new Properties() | |
localProps.load(new FileInputStream(file('../local.properties'))) | |
def buildToolVer = file("${localProps['sdk.dir']}/build-tools/").listFiles().sort().reverse().first().name; | |
buildToolsVersion buildToolVer; |
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 addScript = function (url) { | |
var doc = document; | |
var tag = 'script'; | |
return new Promise((resolve,reject) => { | |
if(!doc.querySelector(tag+"[src='"+url+"']")){ | |
var ele = doc.createElement(tag); | |
var firstEle = doc.getElementsByTagName(tag)[0]; | |
ele.async = 0; | |
ele.src = url; | |
firstEle.parentNode.insertBefore(ele, firstEle); |
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
(function() { | |
window.blobURL = null; | |
function blobToFile(blob, filename) { | |
if(window.blobURL != null) { | |
URL.revokeObjectURL(window.blobURL) | |
} | |
window.blobURL = URL.createObjectURL(blob); | |
if(window.link == null) { | |
window.link = document.createElement("a"); |
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
<html> | |
<head> | |
<style> | |
#key_password, #password { | |
width: 300px; | |
margin-right: 5px; | |
} | |
#key_valid, #valid { | |
height: 30px; | |
line-height: 30px; |
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
function dist(){ | |
RET=`echo "$1 $2 $3 $4" | \ | |
awk ' | |
function ceil(valor) | |
{ | |
return (valor == int(valor)) ? valor : int(valor)+1 | |
} | |
function a(dx,dy) { | |
return sqrt(dx*dx+dy*dy); | |
} |
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
FILTER=" | |
[0:v] scale=512:512[src]; | |
[2:v]format=rgba64,colorchannelmixer=rr=1/128:bb=1/128[map16]; | |
[map16]extractplanes=r+b+a[x][y][a]; | |
[src][x][y]remap[remap]; | |
[remap][a]alphamerge[remapa]; | |
[remapa][1:v]overlay" | |
echo "====" | |
echo $FILTER | |
echo "====" |
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
"use strict" | |
const ZIP_EOCD = 0x06054b50; | |
const ZIP_CENTRAL_DIR_HEADER = 0x02014b50; | |
const ZIP_LOCAL_HEADER = 0x04034b50; | |
const decoder = new TextDecoder(); | |
const GZIP_HEADER = new Uint8Array([31,139, 8, 0, 0,0,0,0, 0, 255]); | |
function deflateFooter(crc, isize){ | |
const footer = new DataView(new Uint8Array(8).buffer); |
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
/* | |
const zip = new ZipReader(fileBlob); | |
await zip.parse(); | |
console.log(zip.RECORDS); | |
const blob = await zip.getRecord(1); | |
*/ | |
for(_=`;s++*pako@(t,eM,!0)Qco^^nst ~~e=%.p($en#e.Ye(XetW])Ki.c||i.fJ],Iif(H,2G.sFin);new ResponsX,{s:or(){this.&&(i+=awaitufferlobRECORDS)).push(async {^nstructtdocum#t.,0,0,De^mpressionStreamDataView( functionUt8Array(YbyteL#gthWUt32(rWurn a(b,GGGG,4,4,$[4K[0Kthrow Err"Error parsg #try"(()=>{"use strict"; tM,nHwdow.~i=("gzip"),r= 8).brF0,eQ,rF4,nQ,B([s,t,rKFtream().pipeThrough(i.b()}{(i="https://cdnjs.cloudflarY^m/ajax/libs/@/1.0.10/@_flatYm.js",PromisXMHquerySelect"script[src='"+i+"']"t(ielse{%createElem#t("script"eFrc=i,Yonload=(t(i)},gWElem#tsByTagNamX"head")[0].app#dChild(e)}};%@.flateRaw(tB([eK}var i}%TextDe^der;class nd=t,i=0}p(t~n=[];flW s=0;s<t.l#gth*~i=t[s];HiFn[iFK,J~t=n[J];i+=t;~s=d.b,i-t,tni.f?Yde^dXs):s)}2==i2,nd.gWUt16(i-2,!0),4==i4,nd.gi-4,!0)}n}}~s |
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.js"></script> | |
</head> | |
<body> | |
<svg xmlns="http://www.w3.org/2000/svg" viewport="0 0 410 510" width="410" height="510" style="width: 100vw;max-width:600px;"> | |
<style> | |
text { | |
font-family: sans-serif; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>GLSL Stereogram</title> | |
<style> | |
canvas { | |
image-rendering: crisp-edges; |
OlderNewer