紀錄 2018 - 2020 解決 Leetcode 過程。
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
| [ -f Cartfile.resolved ]; then | |
| CARTFILE_CHANGED=`git diff --stat $(GIT_PREVIOUS_SUCCESSFUL_COMMIT) $(GIT_COMMIT) | grep '\|' | awk '{print $$1}' | grep Cartfile.resolved` | |
| if test "$(CARTFILE_CHANGED)" ; then | |
| echo "## STEP: Updating Carthage" | |
| carthage bootstrap --platform iOS --no-use-binaries | |
| else | |
| echo "## Carthage is up to date" | |
| fi | |
| else | |
| echo "## STEP: Installing Carthage Dependencies" |
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
| <html> | |
| <body> | |
| <h2>Privacy Policy</h2> | |
| <p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended | |
| for use as is.</p> | |
| <p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and | |
| disclosure of Personal Information if anyone decided to use [my|our] Service.</p> | |
| <p>If you choose to use [my|our] Service, then you agree to the collection and use of information in | |
| relation with this policy. The Personal Information that [I|we] collect are used for providing and | |
| improving the Service. [I|We] will not use or share your information with anyone except as described |
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
| //: Playground - noun: a place where people can play | |
| // | |
| // The result is not guaranteed to be accurate. Typically, the function requires 200-400 characters to reliably guess the language of a string. | |
| // Reference: [CFStringTokenizerCopyBestStringLanguage(_:_:)](https://developer.apple.com/reference/corefoundation/1542136-cfstringtokenizercopybeststringl) | |
| // | |
| import Foundation | |
| extension String { | |
| func guessLanguage() -> String { |
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
| apply plugin: 'maven-publish' | |
| project.afterEvaluate { | |
| def androidExtension = project.extensions.findByName("android") | |
| if (androidExtension.hasProperty('libraryVariants')) { | |
| androidExtension.libraryVariants.all { final variant -> | |
| task("${variant.name}Javadoc", type: Javadoc) { | |
| description "Generates Javadoc for ${variant.name}." | |
| failOnError = false | |
| source = variant.javaCompile.source |
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
| /** | |
| * Custom implementation of AdapterDataObserver to show empty layouts | |
| * for RecyclerView when there's no data | |
| * | |
| * Usage: | |
| * | |
| * adapter.registerAdapterDataObserver(new RVEmptyObserver(recyclerView, emptyView)); | |
| */ | |
| public class RVEmptyObserver extends RecyclerView.AdapterDataObserver { | |
| private View emptyView; |
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
| /* | |
| * Copyright (C) 2016 The Android Open Source Project | |
| * | |
| * 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 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| // Delete old artifacts that fills up the disk on the master node. | |
| // Run this from the Jenkins console (Manage Jenkins, Manage Nodes, master, Script Console) | |
| def project = Jenkins.get().getItemByFullName('your-project-id') | |
| def jobs = project.getAllJobs() | |
| def total_size = 0 | |
| jobs.each{ job -> | |
| def builds = job.getBuilds() |
- https://www.interviewcake.com/google-interview-questions
- http://www.codespaghetti.com/google-interview-guide/
- https://psc-g.github.io/interviews/google/2020/02/25/interviewing-at-google.html
- https://coderbyte.com/course/google-interview-questions
- https://www.slideshare.net/interviewcoach/google-interview-prep-guide-software-engineer
- https://www.impactinterview.com/2020/01/30-day-google-product-manager-interview-prep-guide/
- https://habr.com/en/post/489698/
- https://fairygodboss.com/career-topics/google-interview-questions
- http://courses.csail.mit.edu/iap/interview/materials.php
- https://softwareengineering.stackexchange.com/questions/23810/upcoming-google-interview-looking-for-some-preparation-advice