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 / template_string.sublime-snippet
Created November 17, 2017 20:31
Snippet Sublimetext - javascript template string
<snippet>
<content><![CDATA[
`${1:cadena de texto}`
]]></content>
<tabTrigger>tmpstr</tabTrigger>
<scope>source.js, source.jsx, source.ts</scope>
<description>String template</description>
</snippet>
@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 / .htaccess
Created September 14, 2016 01:16
Ayudas codeigniter
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
@EdwinPalacios
EdwinPalacios / CSS-Tools.md
Created January 20, 2016 14:05 — forked from nucliweb/CSS-Tools.md
CSS Tools
@EdwinPalacios
EdwinPalacios / Ionic
Last active September 29, 2015 16:07
/**
* PATH
*/
C:\Program Files (x86)\Android\android-sdk\tools;
C:\Program Files (x86)\Android\android-sdk\platform-tools
/**
* Agregar nuevas variables de entorno
*/
@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 {