Skip to content

Instantly share code, notes, and snippets.

View EdwinPalacios's full-sized avatar

Edwin Palacios EdwinPalacios

  • Colombia
View GitHub Profile
@EdwinPalacios
EdwinPalacios / intercept.js
Created November 16, 2018 15:12 — forked from suprememoocow/intercept.js
AJAX timing interceptor: this class intercepts all AJAX calls and records the time taken for the HTTP request to complete. These timings are posted back to the server in batches, if there are any to send, about every two seconds. Tested in Firefox, Chrome
(function(XHR) {
"use strict";
var stats = [];
var timeoutId = null;
var open = XHR.prototype.open;
var send = XHR.prototype.send;
@EdwinPalacios
EdwinPalacios / CountryCodes.json
Created May 15, 2018 20:16 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@EdwinPalacios
EdwinPalacios / EventMonitor.js
Created June 8, 2017 17:16 — forked from livingston/EventMonitor.js
Element event monitor, similar to Web Inspector's `monitorEvents`
(function (global) {
if ( !global.Event && !('keys' in Object) && !('bind' in Function) ) { return }
var eventProto = Event.prototype,
EVENTS = {
'mouse': [ 'click', 'dblclick', 'contextmenu', 'mousedown', 'mouseup', 'mouseover', 'mousemove', 'mouseout', 'drag', 'dragend', 'dragenter', 'dragleave', 'dragover', 'drop'],
'key': [ 'keydown', 'keypress', 'keyup', 'input'],
'res': [ 'load', 'unload', 'beforeunload', 'abort', 'error', 'resize', 'scroll', 'readystatechange' ],
'form': [ 'select', 'change', 'submit', 'reset', 'focus', 'blur' ],
'ui': [ 'DOMFocusIn', 'DOMFocusOut', 'DOMActivate', 'DOMCharacterDataModified', 'DOMNodeInserted', 'DOMNodeRemoved', 'DOMSubtreeModified' ],
@EdwinPalacios
EdwinPalacios / index.html
Created October 21, 2016 15:30 — forked from CodeMyUI/index.html
Pure CSS - File icons with nice hover animation
<h1>Pure CSS - file icons</h1>
<h2>with nice hover animation</h2>
<div class="icons">
<div class="icon icon--doc"><i title="doc"></i></div>
<div class="icon icon--pdf"><i title="pdf"></i></div>
<div class="icon icon--sheets"><i title="xlsx"></i></div>
<div class="icon icon--slides"><i title="ppt"></i></div>
<div class="icon icon--code"><i title="xml"></i></div>
</div>
@EdwinPalacios
EdwinPalacios / sublime-text-scopes.md
Created October 14, 2016 14:39 — forked from J2TEAM/sublime-text-scopes.md
Sublime Text 2/3: Snippet scopes

Here is a list of scopes to use in Sublime Text 2/3 snippets -

ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
@EdwinPalacios
EdwinPalacios / CSS-Tools.md
Created January 20, 2016 14:05 — forked from nucliweb/CSS-Tools.md
CSS Tools
@EdwinPalacios
EdwinPalacios / app.scss
Last active August 26, 2015 16:46 — forked from malixsys/app.scss
ionic framework validation
form i.icon.error {
color: $assertive;
}
form input + i.icon.error {
display: none;
margin-left: 8px;
}
form.ng-submitted input.ng-invalid + i.icon.error {
@EdwinPalacios
EdwinPalacios / Codes
Last active August 29, 2015 14:28 — forked from jdnichollsc/Codes
Ionic Framework Links
- Ejemplo de Gulp con Ionic => https://gist.github.com/jdnichollsc/e3a323223fcb7822dbba
- SQLite con ngCordova usando patrón de servicio y promesas => https://gist.github.com/jdnichollsc/9ac79aaa3407e92677ba
- Permitir dinamicamente arrastrar elementos de una Lista => https://gist.github.com/mhartington/c5107ccd9204b755442b
- Obtener datos consumiendo un servicio REST o desde el LocalStorage => https://gist.github.com/jdnichollsc/7367fe5b17369e856157
- Cambiar el tamaño de un Modal => https://gist.github.com/jdnichollsc/1b0112dfdca4b7f06fbe
/*******************************************************************************
1. DEPENDENCIES
*******************************************************************************/
var gulp = require('gulp'); // gulp core
sass = require('gulp-sass'), // sass compiler
uglify = require('gulp-uglify'), // uglifies the js
jshint = require('gulp-jshint'), // check if js is ok
rename = require("gulp-rename"); // rename files
concat = require('gulp-concat'), // concatinate js