Skip to content

Instantly share code, notes, and snippets.

View luisramirezdev's full-sized avatar

Luis Ramirez luisramirezdev

View GitHub Profile
@luisramirezdev
luisramirezdev / keybindings.json
Created November 21, 2023 18:45 — forked from bitterteasweetorange/keybindings.json
setup vscode like neovim
[
{
"command": "projectManager.listGitProjects#sideBarGit",
"key": "cmd+o"
},
{
"command": "expand_region",
"key": "ctrl+=",
"when": "editorTextFocus"
},
{user.role === "user" && (
<div className="header__dashboard-link">
<Link to="/dashboard/user">Tableau de bord</Link>
</div>
<div className="header__dashboard-link">
<Link to="/dashboard/user">Otro menu</Link>
</div>
)}
@luisramirezdev
luisramirezdev / _spacing.scss
Last active August 4, 2021 07:41
Margin and padding space class generator like Bootstrap (Utility Classes)
$spacer: 8px;
$spaces: (
0: 0,
1: (
$spacer
),
2: (
$spacer * 2
),
@luisramirezdev
luisramirezdev / .1-instructions.md
Last active August 30, 2021 18:33
ESLitn order imports by groups on TypeScript
@luisramirezdev
luisramirezdev / 📊 Weekly development breakdown
Last active March 31, 2024 00:04
📊 Weekly development breakdown
TypeScript 8 hrs 29 mins ███████████████████▉░ 94.9%
JSON 8 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.6%
Bash 8 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.5%
Other 7 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.4%
Git Config 2 mins ░░░░░░░░░░░░░░░░░░░░░ 0.5%
@luisramirezdev
luisramirezdev / .zshrc
Last active January 8, 2020 18:45
My Oh-My-Zsh configuration|-|{"files":{".zshrc":{"env":"plain"}},"tag":"Configurations"}
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/lramirez/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@luisramirezdev
luisramirezdev / profiles.json
Last active January 8, 2020 18:45
Profile Windows Terminal|-|{"files":{"profiles.json":{"env":"plain"}},"tag":"Configurations"}
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"profiles": [
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
@luisramirezdev
luisramirezdev / date-ago.pipe.ts
Last active January 8, 2020 18:54
Pipe Angular - Get custom date format for ux/ui desing: Date format 10 minutes ago / 10 hours ago / 10 days ago / 10 months ago / 10 years ago. More information: https://medium.com/@thunderroid/angular-date-ago-pipe-minutes-hours-days-months-years-ago-c4b5efae5fe5|-|{"files":{"date-ago.pipe.ts":{"env":"plain"}},"tag":"Angular"}
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'dateAgo',
pure: true
})
export class DateAgoPipe implements PipeTransform {
transform(value: any, args?: any): any {
if (value) {
@luisramirezdev
luisramirezdev / xmltojson.py
Last active March 25, 2021 10:27
XML to JSON|-|{"files":{"xmltojson.py":{"env":"plain"}},"tag":"JSON"}
import json
import xmltodict
with open("sample.xml", 'r') as f:
xmlString = f.read()
# print("XML input (sample.xml):")
# print(xmlString)
jsonString = json.dumps(xmltodict.parse(xmlString), indent=4)