Skip to content

Instantly share code, notes, and snippets.

View apisandipas's full-sized avatar

Bryan Paronto apisandipas

View GitHub Profile
@apisandipas
apisandipas / nano-font-stack.org
Last active April 24, 2023 21:50 — forked from rougier/nano-font-stack.org
NΛNO Emacs font stack

NΛNO Emacs font stack

  • Default font: Roboto Mono , 14pt, Light
  • Italic font: Victor Mono , 14pt, Semilight
  • Bold font: Roboto Mono , 14pt, Regular
  • Unicode font: Inconsolata , 16pt, Light
  • Icon font: Roboto Mono Nerd , 12pt, Light

Text excerpt using a gorgeous and true italic font (Victor Mono), chosen to really stand out from the default font (Roboto Mono).

@apisandipas
apisandipas / main.cpp
Created January 22, 2023 05:04
This is my submission for my Study.com C++ Assignment, Bryan Paronto , 2023-01-21
/**
* Study.com - Computer Sciece 102: Intro to C++ Coding Assignment
* Author: Bryan Paronto
* Date: 2023-01-21
*
* The below is an implementation of a simple Employeee Management System.
*
* To try it out, I've hardcoded 1 user of each permission level. Login with the information below:
*
* Username Password
@apisandipas
apisandipas / De-quarantine an app on MacOS
Last active November 8, 2024 20:18
De-quarantine an app on MacOS
codesign --sign - --force --deep /Applications/VSCodium.app
xattr -d com.apple.quarantine /Applications/VSCodium.app
@apisandipas
apisandipas / memoize.js
Created October 14, 2020 01:01
A simple memoize implementation.
const memoize = (fn) => {
const cache = {};
return function () {
const args = Array.from(arguments).join();
if (!cache[args]) {
cache[args] = fn(...arguments);
}
return cache[args];
};
};
# .__
# ________ _____| |_________ ____
# \___ / / ___/ | \_ __ \_/ ___\
# / / \___ \| Y \ | \/\ \___
# /\ /_____ \/____ >___| /__| \___ >
# \/ \/ \/ \/ \/
#
export TERM="xterm-256color"
ZSH=$HOME/.oh-my-zsh
@apisandipas
apisandipas / .vimrc
Created November 15, 2019 03:20
.vimrc
""""""""""""""""""""""""""""""""""""""
" .__ "
" ___ _|__| ____________ ____ "
" \ \/ / |/ \_ __ \_/ ___\ "
" \ /| | Y Y \ | \/\ \___ "
" /\ \_/ |__|__|_| /__| \___ > "
" \/ \/ \/ "
" "
""""""""""""""""""""""""""""""""""""""
@apisandipas
apisandipas / .Xresources
Created October 6, 2019 03:09
Cobalt2 .Xresources
!
! Generated with :
! XRDB2Xreources.py
!
*.foreground: #ffffff
*.background: #132738
*.cursorColor: #f0cc09
!
! Black
*.color0: #000000
const fetchArticles = () => async (dispatch, getState, { api }) => {
//… request action fired..
try {
await api.get(‘/relative-path’) // already pointed to API server
// dispatch success
} catch(e) {
//dispatch error
}
}
<!--[if IE ]>
<body class="ie">
<![endif]-->
<!--[if !IE]>-->
<body>
<!--<![endif]-->
@apisandipas
apisandipas / ReadMore.js
Created May 14, 2019 20:28
React Read More/ Read Less with HTML support.
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import vars from 'styles/_variables.scss';
class ReadMore extends React.Component {
constructor(props) {
super(props);
this.state = {
charLimit: props.charLimit