Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Gustavo Garzaki gugadev

🎯
Focusing
View GitHub Profile
@gugadev
gugadev / accordion.component.ts
Last active Aug 7, 2019
Pacífico Elements snippets
View accordion.component.ts
import { Component } from '@angular/core'
import '@pacificoseguros/elements/accordion'
import '@pacificoseguros/elements/typography'
import '@pacificoseguros/elements/number'
import '@pacificoseguros/icons/ambulance'
@Component({
selector: 'app-accordion-demo',
templateUrl: './accordion.html'
})
@gugadev
gugadev / camelToKebab.js
Created Sep 8, 2019 — forked from nblackburn/camelToKebab.js
Convert a string from camel case to kebab case.
View camelToKebab.js
module.exports = (string) => {
return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();
};
@gugadev
gugadev / style.css
Created Sep 17, 2019 — forked from Kvaibhav01/style.css
CSS file for Material ripple effect without JS
View style.css
.container {
background-color: #c1c1c1;
height: 500px;
display: flex;
justify-content: center;
align-items: center;
}
.btn {
background-color: orange;
@gugadev
gugadev / ios-chrome-devtools.md
Created Sep 24, 2019 — forked from james2doyle/ios-chrome-devtools.md
Enable remote debugging on the iOS simulator using Chrome Dev Tools
View ios-chrome-devtools.md

Install the tools:

brew install ios-webkit-debug-proxy

Run the simulator. And choose an iOS 10 device. The chrome remote debugging doesn't work with iOS 11 yet.

Enable the inspector

@gugadev
gugadev / flatten-array.js
Created Jan 21, 2020
Flatten an array with n deep levels.
View flatten-array.js
const source = [[1, 2, [3, [4]]], 5]
const flatArray = (src) => {
const flattened = []
function isArray(value) {
return value instanceof Array
}
// do not modify the original array, instead, clone it
@gugadev
gugadev / launch.json
Created Feb 2, 2020 — forked from cecilemuller/launch.json
Run ts-node in VSCode Debugger
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Node Inspector",
"type": "node",
"request": "launch",
"args": ["${workspaceRoot}/src/service.ts"],
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceRoot}",
You can’t perform that action at this time.