Skip to content

Instantly share code, notes, and snippets.


Gus Garzaki gugadev

Block or report user

Report or block gugadev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gugadev /
Created Sep 24, 2019 — forked from james2doyle/
Enable remote debugging on the iOS simulator using Chrome Dev Tools

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 / 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 / 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 / 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'
selector: 'app-accordion-demo',
templateUrl: './accordion.html'
gugadev / ce-pragma.ts
Last active Jul 25, 2019
View ce-pragma.ts
import React, { FunctionComponent, ReactChild } from 'react'
const listeners = Symbol('jsx-web-comp/event-listeners')
const eventPattern = /^onEvent/
const toKebabCase = (str: string): string => str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase()
export default function jsx (type: string | FunctionComponent, props: Record<string, any>, ...children: ReactChild[]) {
const isCustomElement = customElements.get(type as string)
const newProps = { ...props }
gugadev / observables.ts
Last active Jan 18, 2019
RxJs Observables
View observables.ts
import chalk from 'chalk';
import {
gugadev /
Last active Oct 26, 2018
IP Locator
yarn install
yarn run shit --ip=<ip here>
gugadev / oops.css
Created Jul 20, 2018
React SVG 404 animation
View oops.css
.oops {
margin: 0;
padding: 0;
background-color: #0a1821;
flex: 1;
height: 100%;
width: 100%;
color: #fff;
position: relative;
text-align: center;
# Import the public repository GPG keys
curl | sudo apt-key add -
# Register the Microsoft Ubuntu repository
curl | sudo tee /etc/apt/sources.list.d/microsoft.list
# Update apt-get
sudo apt-get update
# Install PowerShell
gugadev / gist:3e7e4b608b83771165ded4e7743efa8b
Created Oct 19, 2017 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
View gist:3e7e4b608b83771165ded4e7743efa8b
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
You can’t perform that action at this time.