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
| public class CustomAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>{ | |
| //our items | |
| List<Generic> items = new Arraylist<>(); | |
| //headers | |
| List<View> headers = new ArrayList<>(); | |
| //footers | |
| List<View> footers = new ArrayList<>(); | |
| public static final int TYPE_HEADER = 111; | |
| public static final int TYPE_FOOTER = 222; |
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
| /** | |
| * | |
| * Most of this from: | |
| * https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/resource/bitmap/CenterCrop.java | |
| * and | |
| * https://github.com/bumptech/glide/blob/master/library/src/main/java/com/bumptech/glide/load/resource/bitmap/TransformationUtils.java | |
| * | |
| * Created by wblaschko on 3/31/16. | |
| */ | |
| public class LocationBitmapTransformation extends BitmapTransformation { |
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
| ... | |
| if(BuildConfig.DEBUG) { | |
| Log.i("Key", SigningKey.getCertificateMD5Fingerprint(this)); | |
| } | |
| ... |
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
| if (file('signing.gradle').exists()) { | |
| apply from: 'signing.gradle' | |
| } | |
| android{ | |
| ... | |
| buildTypes { | |
| debug{ | |
| versionNameSuffix " Debug" | |
| minifyEnabled false | |
| shrinkResources true |
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
| const RequestHandler = { | |
| process(handlerInput) { | |
| //log our request | |
| console.log("REQUEST ENVELOPE = " + JSON.stringify(handlerInput.requestEnvelope)); | |
| //required function taken from Alexa SDK | |
| function trimOutputSpeech(speechOutput) { | |
| if (!speechOutput) { | |
| return ''; |
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
| module.exports = { | |
| animate: function (componentId, count = 7, delay = 20, jump = 1, reverse = true) { | |
| let commands = []; | |
| for (let i = 0; i < count; i += jump) { | |
| commands.push({ | |
| "type": "ScrollToIndex", | |
| "componentId": componentId, | |
| "index": i, |
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
| ... | |
| let spriteCommands = []; | |
| for (...) { | |
| ... | |
| spriteCommands.push({ | |
| "type": "SetPage", | |
| "componentId": "b", |
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
| { | |
| "grid": { | |
| "values": [ | |
| [ 2, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
| [ 1, 2, 4, 4, 5, 6, 7, 8, 9, 10 ], | |
| [ 1, 1, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
| [ 2, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
| [ 1, 2, 4, 4, 5, 6, 7, 8, 9, 10 ], | |
| [ 1, 1, 3, 4, 5, 6, 7, 8, 9, 10 ], | |
| [ 2, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], |
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
| ... | |
| { | |
| "type": "Video", | |
| "position": "absolute", | |
| "top": "0dp", | |
| "left": "0dp", | |
| "source": "<my file>", | |
| "id": "counter", | |
| "autoplay": "false", |
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
| const puppeteer = require('puppeteer'); | |
| const moment = require("moment"); | |
| let baseLayout = require('./layout_base.json'); | |
| const exec = require('child_process').execSync; | |
| let sleep = function (ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| }; |
OlderNewer