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
package com.filecomparator.main; | |
import java.io.*; | |
public class FileComparator { | |
private File parent; | |
private File child; | |
private BufferedReader brParent; | |
private BufferedReader brChild; | |
private StringBuilder parentScope; |
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
-- 1. Find the titles of all movies directed by Steven Spielberg. | |
SELECT title | |
FROM Movie | |
WHERE director = 'Steven Spielberg'; | |
-- 2. Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order. | |
SELECT DISTINCT year |
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
// THIS IS AN AUTO-GENERATED FILE! Changes to this file will be ignored. | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"alwaysShowTabs": true, | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ffaaaa}", | |
"initialCols": 120, | |
"initialRows": 30, | |
"requestedTheme": "system", | |
"showTabsInTitlebar": true, | |
"showTerminalTitleInTitlebar": 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
Import-Module PSColor | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-Theme Agnoster |
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
{ | |
"profiles": | |
[ | |
{ | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ffaaaa}", | |
"acrylicOpacity" : 0.85, | |
"name": "Voogie", | |
"commandline": "powershell.exe", | |
"hidden": false, | |
"startingDirectory": "%USERPROFILE%", |
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
"use strict"; | |
export const clipIt = (inputId) => { | |
const node = document.querySelector("#" + inputId); | |
node.select(); | |
node.setSelectionRange(0, 99999); | |
document.execCommand("copy"); | |
return node.value; | |
} |
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 AWS = require("aws-sdk"); | |
const { randomize } = require("./randomize.js"); | |
const documentClient = new AWS.DynamoDB.DocumentClient(); | |
exports.handler = async event => { | |
const { url } = JSON.parse(event.body); | |
const id = randomize(6); | |
const params = { | |
TableName: // dynamoDB, |
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
{ | |
"workbench.colorTheme": "Night Owl", | |
"editor.fontSize": 14, | |
"editor.fontFamily": "Dank Mono, Fira Font, Consolas, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"editor.renderWhitespace": "boundary", | |
"workbench.iconTheme": "vscode-icons", | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.fontLigatures": 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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:~/Library/Python/3.7/bin:$PATH |
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 alias is useful for creating personal short git commands which combine several commands | |
// alias can be added both locally in the project (git config --local -e) | |
// and globally to the git user on the given machine (git config --global -e) | |
[alias] | |
adog = log --all --decorate --oneline --graph | |
cob = checkout -b | |
wip = commit -am "WIP" | |
undo = reset --soft HEAD~1 | |
hdr = "!f(){ git checkout main && git pull && git checkout - && git rebase main; };f" |
OlderNewer