Skip to content

Instantly share code, notes, and snippets.

@marionava
marionava / ionic-popover.ts
Created May 2, 2020 09:47
Crear un popOver en Ionic
import { Component, OnInit } from '@angular/core';
import { PopoverController } from '@ionic/angular';
import { AddPeopleComponent } from '../../components/pop-overs/add-people/add-people.component';
@Component({
selector: 'app-people',
templateUrl: './people.page.html',
styleUrls: ['./people.page.scss'],
})
export class PeoplePage implements OnInit {
@marionava
marionava / contacts.ts
Last active May 2, 2020 10:38
Crear un contacto en Ionic con plugin
import { Contacts, Contact, ContactField, ContactName } from '@ionic-native/contacts/ngx';
misContactos: Contact[] = [];
constructor(
// tslint:disable-next-line: deprecation
private contacts: Contacts
) { }
importarContactos() {
@marionava
marionava / Local SSL on macOS.md
Created January 30, 2018 02:53 — forked from ryanburnett/Local SSL on macOS.md
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@marionava
marionava / .aliases - composer
Created September 13, 2017 16:52
Composer, Laravel y Artisan aliases
#Composer, Laravel y Artisan
alias pse="php artisan serve"
alias pa="php artisan"
alias par="php artisan routes"
alias pam="php artisan migrate"
alias pam:r="php artisan migrate:refresh"
alias pam:roll="php artisan migrate:rollback"
alias pam:rs="php artisan migrate:refresh --seed"
alias pda="php artisan dumpautoload"
alias cu="composer update"
@marionava
marionava / Gulpfile.js
Created September 13, 2017 16:50
Gulp configuration for web development
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
imagemin = require('gulp-imagemin'),
minifyCSS = require('gulp-clean-css'),
watch = require('gulp-watch'),
livereload = require('gulp-livereload'),
shell = require('gulp-shell'),
notify = require('gulp-notify');
sourcemaps = require('gulp-sourcemaps');
{
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai-Midnight (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Operator Mono Light",
"font_size": 17,
@marionava
marionava / .aliases
Created September 13, 2017 16:45
Git Aliases for zsh & bash
#Git
alias gs='git status'
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gd='git diff'
alias go='git checkout'
alias gt='git tag'
alias gpush='git push -u origin master'
alias gpull='git pull -u origin master'
@marionava
marionava / gulpfile.js
Created June 7, 2016 19:38
Gulp File with watch, notify, minify, live reload, concat and source maps
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
imagemin = require('gulp-imagemin'),
minifyCSS = require('gulp-clean-css'),
watch = require('gulp-watch'),
livereload = require('gulp-livereload'),
notify = require('gulp-notify');
sourcemaps = require('gulp-sourcemaps');
@marionava
marionava / INSTALLATION.md
Created September 30, 2015 16:27 — forked from DenisIzmaylov/INSTALLATION.md
OS X 10.11 El Capitan: fresh install with Node.js (io.js) Developer Environment

OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.

Content

@marionava
marionava / scopes.txt
Last active September 2, 2015 16:04 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee