Skip to content

Instantly share code, notes, and snippets.

View nperez0111's full-sized avatar
🤜
You know, doin' the do

Nick Perez nperez0111

🤜
You know, doin' the do
View GitHub Profile
@nperez0111
nperez0111 / Brewfile
Last active March 16, 2021 19:49
AgileMD Mac Setup
tap "buo/cask-upgrade"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "rigellute/tap"
brew "aws-iam-authenticator"
brew "awscli"
brew "brew-cask-completion"

Colors in multi repository projects

There needs to be a source of truth when it comes to colors in projects. That source of truth should be a single file which contains all colors that you will use throughout all of your projects.

The problem with colors is that they have no meaning when used as part of a component. $color-border means nothing to both the actual color and when misused as a background (because if there is only one definition of a color it must be used in that way)

I think a good way around this is to have all colors defined in a central location and to use SCSS to logically split up the usage of those colors in a more logical way.

Here's an example:

@nperez0111
nperez0111 / README.md
Last active June 10, 2019 21:34
React Redux structure

Methodology

What are some of the most common tasks when building and maintaining a project?

Initial buildout

  • Adding features
    • Creating components, containers, and redux related data (if need be)
  • Modifying existing features
  • Finding components, containers and adding or removing things until the desired outcome is fulfilled

Keybase proof

I hereby claim:

  • I am nperez0111 on github.
  • I am nick_agile (https://keybase.io/nick_agile) on keybase.
  • I have a public key ASClPyoCE8eIrwjJWoTGBJ2EGgKp4_A9W54GElgxTsdBLAo

To claim this, I am signing this object:

@nperez0111
nperez0111 / README.md
Created September 6, 2018 17:08
Proposed Refactor for Budgetwise.io

components/dialogs/ (folder)

Split out all dialog components into this folder and remove prefix dialog-. Add dropzone-modal, settings-modal, new-account-modal, settings-currency-date -> settings-modal

components/settings-modal.js

Current implementation is pretty much just to output some layout with no functionality.

  • Move UI code to containers/settings-form-container
  • Delete components/settings-modal.js

components/budget/ (folder)

@nperez0111
nperez0111 / README.md
Last active November 3, 2017 03:58
Description of a Note Taker app

Screens breakdown

Main/Capture Screen

Main Screen

This is the Camera screen and the first screen you see when opening the app. The middle ring is the capture button which will capture the image the user is currently pointing at.If you click on the notebook icon you will be navigated to a list of notebooks.

Notebook List Viewer

list viewer

@nperez0111
nperez0111 / README.md
Last active October 11, 2017 22:37
Easy way to calculate fibonacci numbers

So I was bored in class one day and decided to play around with the famous fibonacci sequence. So I started to play with it's definition:

Fn = Fn-1 + Fn-2

From there I started to derive other solutions as it is a recursive function that have each replaced by using this definition and playing with the subscripts:

Fn = (Fn-2 + Fn-3) + Fn-2

Fn = 2(Fn-2) + Fn-3

@nperez0111
nperez0111 / OwnCloud Installer.sh
Last active October 3, 2017 20:53
Own Cloud Installer
#!/bin/sh
echo "Thanks for using Nick's OwnCloud Server installer"
#let's just update it all before we start
sudo apt-get update
sudo apt-get upgrade
#start install of owncloud
echo "We are attempting to install OwnCloud"
cd /tmp
#sudo apt-key add - < Release.key
@nperez0111
nperez0111 / ThinkAboutIt.md
Created August 28, 2016 21:34
How to get through Think About It for USF Quicker

What It Does

The "Think About It" Course prior to entering to USF is a difficult thing to pass through needing a shit load of time. These are a couple scripts that can be copy and pasted into the console in order to speed things up.

setInterval( function () {
    $( '.closeable-close-button' ).click();
    $( '.next-button' ).click();
    $( '[data-ng-click="NextClicked()"]' ).click();
 $( "video" ).each( function ( c ) {
@nperez0111
nperez0111 / MutualRecursion.js
Last active July 6, 2016 20:48
Playing with recursion
function isEven( a ) {
if ( a == 0 ) {
return true;
} else {
return isOdd( a - 1 );
}
}
function isOdd( a ) {
if ( a == 0 ) {