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
[ | |
{ | |
"key": "cmd+d", | |
"command": "editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+k", | |
"command": "-editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" |
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
<div class="flex justify-center items-center w-full h-screen relative"> | |
<h1 | |
class="px-12 mb-36 pt-12 bg-white mix-blend-screen text-[18rem] font-black z-10" | |
> | |
BLEND | |
</h1> | |
<video | |
src="/train.mp4" | |
autoplay | |
loop |
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
{ | |
"editor.tabSize": 2, | |
"editor.fontSize": 14, | |
"editor.formatOnSave": true, | |
"workbench.iconTheme": "vscode-icons", | |
"editor.renderWhitespace": "all", | |
"editor.minimap.enabled": false, | |
"editor.renderLineHighlight": "none", | |
"editor.mouseWheelZoom": true, | |
"workbench.layoutControl.type": "menu", |
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
- Add a Scroll View as a Sub View of the Main View | |
- Select the Scroll View and uncheck "Constrain to margins" and pin top, left, right, bottom, constraints | |
- Add a UIView as a subview of the Scroll View. Name this view "Content View" | |
- Select the Content View and pin top, left, right, and bottom constraints. Then add a center horizontally constraint. | |
- Next from the Content View to the Main View add equal width and equal height constraints. |
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
git log --shortstat --pretty="%cE" | sed 's/\(.*\)@.*/\1/' | grep -v "^$" | awk 'BEGIN { line=""; } !/^ / { if (line=="" || !match(line, $0)) {line = $0 "," line }} /^ / { print line " # " $0; line=""}' | sort | sed -E 's/# //;s/ files? changed,//;s/([0-9]+) ([0-9]+ deletion)/\1 0 insertions\(+\), \2/;s/\(\+\)$/\(\+\), 0 deletions\(-\)/;s/insertions?\(\+\), //;s/ deletions?\(-\)//' | awk 'BEGIN {name=""; files=0; insertions=0; deletions=0;} {if ($1 != name && name != "") { print name ": " files " files changed, " insertions " insertions(+), " deletions " deletions(-), " insertions-deletions " net"; files=0; insertions=0; deletions=0; name=$1; } name=$1; files+=$2; insertions+=$3; deletions+=$4} END {print name ": " files " files changed, " insertions " insertions(+), " deletions " deletions(-), " insertions-deletions " net";}' |
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 Queue<T> { | |
private static class Node<T> { | |
private T data; | |
private Node<T> next; | |
public Node(T data) { | |
this.data = data; | |
} | |
} | |
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 Stack<T> { | |
private static class Node<T> { | |
private T data; | |
private Node<T> next; | |
public Node(T data) { | |
this.data = data; | |
} | |
} | |
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 | |
public final class ApiModule { | |
private static final int OK_HTTP_CACHE_SIZE = 10 * 1024 * 1024; | |
private static final String GSON_DATE_FORMAT = "yyyy-MM-dd"; | |
private String baseUrl; | |
private String apiKey; | |
public ApiModule(String baseUrl, String apiKey) { | |
this.baseUrl = baseUrl; |
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 void bfs(TreeNode root) { | |
if (root == null) { | |
return; | |
} | |
Queue<TreeNode> queue = new LinkedList<>(); | |
queue.add(root); | |
while(!queue.isEmpty()) { | |
TreeNode node = queue.remove(); |