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
| // | |
| // PGGeometry.hh | |
| // PonyGrid | |
| // | |
| // Created by Mike Lewis on 9/23/11. | |
| // Copyright (c) 2011 Square, Inc. All rights reserved. | |
| // | |
| #ifndef PonyGrid_PGGeometry_hh | |
| #define PonyGrid_PGGeometry_hh |
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
| #!/bin/bash | |
| if [ $# -ne 1 ]; then | |
| echo "Usage : $0 <file to compress>" | |
| exit 1 | |
| fi | |
| file=${1%%/} | |
| tar c "$file" | lz4 -z - "$file.tar.lz4" |
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
| // TODO add <meta-data android:value="GlideModule" android:name="....OkHttpProgressGlideModule" /> | |
| // TODO add <meta-data android:value="GlideModule" tools:node="remove" android:name="com.bumptech.glide.integration.okhttp.OkHttpGlideModule" /> | |
| // or not use 'okhttp@aar' in Gradle depdendencies | |
| public class OkHttpProgressGlideModule implements GlideModule { | |
| @Override public void applyOptions(Context context, GlideBuilder builder) { } | |
| @Override public void registerComponents(Context context, Glide glide) { | |
| OkHttpClient client = new OkHttpClient(); | |
| client.networkInterceptors().add(createInterceptor(new DispatchingProgressListener())); | |
| glide.register(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(client)); | |
| } |
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
| #!/bin/bash | |
| # This script connects the computer to a vpn server using openconnect without pain | |
| prog_name=$(basename $0) | |
| # CHANGE YOUR_VPN_SERVER_DOMAIN to the VPN server you know like example.com | |
| domain=YOUR_VPN_SERVER_DOMAIN | |
| function help { |