Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

danydodson danydodson

🏠
Working from home
View GitHub Profile
@danydodson
danydodson / review-checklist.md
Last active January 14, 2023 08:57
frontend checklist
View review-checklist.md

Review checklist

General

  1. Does the code work?
  2. Description of the project status is included.
  3. Code is easily understand.
  4. Code is written following the coding standarts/guidelines (React in our case).
  5. Code is in sync with existing code patterns/technologies.
  6. DRY. Is the same code duplicated more than twice?
@danydodson
danydodson / App.jsx
Last active November 15, 2022 06:32
react.js swing
View App.jsx
export default function App() {
return <div>Hello world</div>;
}
@danydodson
danydodson / open-in-vscode.md
Last active November 15, 2022 05:57
vscode quick action
View open-in-vscode.md

Open in Visual Studio Code

  • Open Automator
  • Quick Action
  • Set "Service receives selected" to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to the following
    for f in "$@"; do

open -a 'Visual Studio Code' "$@"

@danydodson
danydodson / disable.sh
Last active November 15, 2022 05:53
disable macos #$!@
View disable.sh
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@danydodson
danydodson / curl-git-repo.sh
Last active November 15, 2022 05:53
curl github repo
View curl-git-repo.sh
#!/bin/bash
#
# using curl on github
#
curl -LO --output-dir "$DOTFILES/iterm" https://github.com/gnachman/iTerm2-shell-integration/archive/refs/heads/main.zip | \
unzip "$DOTFILES"/iterm/main.zip "iTerm2-shell-integration-main/utilities/*" -d "$DOTFILES/iterm"
@danydodson
danydodson / brew-packages.md
Last active November 15, 2022 05:54
brew packages
View brew-packages.md

Top brew packages

node: Platform built on V8 to build network applications

git: Distributed revision control system

wget: Internet file retriever

yarn: JavaScript package manager

@danydodson
danydodson / ads_dom_remover.user.js
Last active November 17, 2022 02:09
userscripts
View ads_dom_remover.user.js
// ==UserScript==
// @name Ads DOM Remover
// @namespace sagiegurari
// @version 1.36
// @author Sagie Gur-Ari
// @description Removes Ad Containers from DOM (doesn't replace adblocker extension, but blocks dynamic content which the adblocker fails to block by removing whole sections from the HTML DOM.)
// @homepage https://github.com/sagiegurari/userscripts-ads-dom-remover
// @supportURL https://github.com/sagiegurari/userscripts-ads-dom-remover/issues
// @match https://www.ynet.co.il/*
// @match https://www.mynet.co.il/*
@danydodson
danydodson / Create Gist.js
Last active November 15, 2022 05:51
ios scripable
View Create Gist.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: brown; icon-glyph: file-code;
// To use this script, you need to configure an OAuth App on GitHub.
// Follow the instructions on the link below to create your OAuth App.
//
// When you are asked to put in a redirect URL, you should put the URL for running this script in Scriptable. Assuming the name of this script is "Create Gist", the URL is scriptable:///run?scriptName=Create%20Gist
//
// https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
//
@danydodson
danydodson / index.pug
Created November 24, 2021 17:21
footer blob
View index.pug
div.main
div.footer
div.bubbles
- for (var i = 0; i < 128; i++) //Small numbers looks nice too
div.bubble(style=`--size:${2+Math.random()*4}rem; --distance:${6+Math.random()*4}rem; --position:${-5+Math.random()*110}%; --time:${2+Math.random()*2}s; --delay:${-1*(2+Math.random()*2)}s;`)
div.content
div
div
b Eldew
a(href="#") Secuce
@danydodson
danydodson / index.html
Last active November 15, 2022 05:48
sound board
View index.html
<body style="background-color: #223">
<div style="font-size:45px"><b>ℤ𝕫𝔽𝕏 - Zuper Zmall Zound Zynth</b></div>
<div style="font-size:20px"><i>A tiny tool for creating and playing sound effects with JavaScript</i></div>
<div style="max-width:799px">
<div style="font-size:20px">
<input id="volume" type="range" min=0 max=1 step=.01
oninput="zzfxV=volume.value;volumeText.innerHTML=volume.value*100|0"></input>