This file contains 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
{ | |
"$schema": "https://zed.dev/schema/themes/v0.1.0.json", | |
"name": "Tinacious Design", | |
"author": "Tina Holly", | |
"themes": [ | |
{ | |
"name": "Tinacious Design", | |
"appearance": "dark", | |
"style": { | |
"background": "#1D1D26", |
This file contains 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
// ==UserScript== | |
// @name Quick && Dirty dark mode | |
// @match https://leetcode.com/problems/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 8/23/2024, 6:30:35 PM | |
// ==/UserScript== | |
document.body.style.filter = 'invert(1)' |
This file contains 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
gitcleanup() { | |
echo 'Paste git branches to be deleted below then press enter...\n' | |
while read line | |
do | |
if [ -n "$line" ]; then | |
echo "\n" | |
git branch -D $line | |
echo "\n" | |
fi | |
done < "${1:-/dev/stdin}" |
This file contains 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
# ./app/controllers/health_controller.rb | |
class HealthController < ApplicationController | |
skip_before_action :authenticate! | |
def index | |
current_time_str = ActiveRecord::Base.connection.execute("SELECT CURRENT_TIME;").first["current_time"] | |
current_time = current_time_str.to_datetime | |
render json: { |
This file contains 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
// Create a playground called NetworkingPlayground, e.g. | |
// ./NetworkingPlayground.playground/Contents.swift | |
import UIKit | |
/* | |
{ | |
"id": 1, | |
"title": "Vinyl gloves", | |
"merchant": "Shoppers Drug Mart", |
This file contains 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
#!/usr/local/bin/ruby | |
require 'json' | |
docs = File.read('spec/api_doc/v1/schemas/docs.json') | |
docs_json = JSON.parse(docs) | |
docs_json['info']['x-logo'] = { | |
"url": "https://example.com/logo.png", | |
"backgroundColor": "#ff3399" | |
} |
This file contains 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
AllCops: | |
NewCops: enable | |
Exclude: | |
- 'db/**/*' | |
- 'vendor/**/*' | |
Layout/LineLength: | |
Max: 150 | |
IgnoredPatterns: ['\#'] | |
Exclude: |
This file contains 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 { PermissionsAndroid } from 'react-native'; | |
import DeviceInfo from 'react-native-device-info'; | |
/** | |
* Depending on the version of Android, we need to check different permissions | |
* to enable this functionality. | |
* Android Q and above only require read permission. | |
* Older versions require both read and write. | |
* | |
* Also make sure you have the following permissions in your manifest. |
This file contains 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
# Homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew cask | |
brew install wget | |
# Node.js development | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash | |
echo "nvm: Go here and add to your bash profile: https://github.com/nvm-sh/nvm"; |
This file contains 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
code --install-extension aeschli.vscode-css-formatter | |
code --install-extension annsk.alignment | |
code --install-extension bierner.markdown-preview-github-styles | |
code --install-extension christian-kohler.npm-intellisense | |
code --install-extension christian-kohler.path-intellisense | |
code --install-extension dbaeumer.vscode-eslint | |
code --install-extension EditorConfig.EditorConfig | |
code --install-extension eg2.vscode-npm-script | |
code --install-extension fcrespo82.markdown-table-formatter | |
code --install-extension HookyQR.beautify |
NewerOlder