WWDC 2001 2002 2003 2004 2007 2008 2009 2010 2011 2012 2013
There are some nuances. Took me a bit to piece it all together.
- Just add an if condition at the end of your existing global
.gitconfigat your root directory.
[includeIf "gitdir:~/something/personal/"]
path = .gitconfig-personal
[includeIf "gitdir:~/elsewhere/work/"]
path = .gitconfig-work
Find all file names that start with 'App'
find path/to/folder -name "App*"
Show the next 3 lines (trailing context) after a match
cat Foo.swift | grep -A 3 methodA
| /* | |
| ATTENTION: I've added two files here. | |
| Steps to find this yourself. | |
| 1. Xcode >> Find >> New Scope >> Set the 'Search the following locations:' to SDK; Then set the other dropdown to 'iOS <whateverVersion>' | |
| 2. Then search for the error code number. | |
| */ |
| // https://www.hackingwithswift.com/articles/119/codable-cheat-sheet | |
| import Foundation | |
| struct Packet: Decodable { | |
| var value: Int | |
| var array: [Packet]? | |
| } | |
| enum Lett { | |
| indirect case a(m: M) |
Great video on stdin vs stdout: https://www.youtube.com/watch?v=OsErpB0-mWY
As a standard your input usually comes from the keyboard. Ex cat file.txt. <- here you're passing file.txt as a parameter.
However you can do cat < $file_name i.e. make the input to the cat command a variable.
Both cat file.txt & cat < file.txt achieve the same, but through different mechanics. < is passing something as an input.
I suppose it's because the cat command has abilities to handle file names as arguments and through stdin
- Learned how to search for files in VSC. Need to use
cmmd+P - The
config.jsis king - For the
config.jsstuff to come to an affect, you need to dogatsby developagain. gatsby builddoesn't work locally. Not sure what it does. ?????- The location of media assets are under the
static/medianot sure why it's in there. For more see https://www.gatsbyjs.com/docs/how-to/images-and-media/static-folder/
| class Solution { | |
| var remaining : [String: Int] = ["(": 0, "[": 0, "{": 0] | |
| func isValid(_ s: String) -> Bool { | |
| let validChars = ["(", ")", "[", "]","{", "}"] | |
| let opens = ["[", "(", "{"] | |
| let closes = ["]", ")", "}"] | |
| for c in s { | |
| let c = String(c) |
| class Solution { | |
| func removeKdigits(_ num: String, _ k: Int) -> String { | |
| var drops = k | |
| var maxStack: [Character] = [] | |
| for digit in num { | |
| // only if there is something bigger in the stack to drop... | |
| while drops > 0 && !maxStack.isEmpty && maxStack.last! > digit { | |
| maxStack.popLast() | |
| drops -= 1 |
- I've read and understood the CONTRIBUTING guidelines and have done my best effort to follow.
- Authors: @prohoney, @AliSoftware
- Date: 1 Jan, 2021
Starting from December 8, 2020, Apple has required new apps and app updates to include App privacy details on the App Store. App owners have to go through every pod and all its dependency's readmes or if nothing is revealed then reach out to pod creators to just figure out what information the pod collects. The current process is not transparent nor easy.