Skip to content

Instantly share code, notes, and snippets.

View wesleyvicthor's full-sized avatar

wmsan wesleyvicthor

View GitHub Profile
@wesleyvicthor
wesleyvicthor / Daily PHP Function.md
Created January 14, 2013 23:20
Daily PHP Function

Daily PHP Function

Daily PHP function tem como objetivo diariamente fornecer uma explicação sobre qualquer função do php.

Qualquer um pode contribuir enviando um gist post para @dailyphpfunc, ou forkando os gist posts e atribuindo mais de sua experiencia sobre uma determinada função.

@wesleyvicthor
wesleyvicthor / oauthapi.php
Created January 22, 2013 16:59
a simple oauth client api.
<?php
$router->oauth('secret', 'key')->handle('access_token_uri', function ($token) {
// do whatever you want with your token.
});
@wesleyvicthor
wesleyvicthor / easypaginate.js
Created February 7, 2013 14:06
a simple refactoring.
/*
* Easy Paginate 1.0 - jQuery plugin
* written by Alen Grakalic
* http://cssglobe.com/
*
* Copyright (c) 2011 Alen Grakalic (http://cssglobe.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
@wesleyvicthor
wesleyvicthor / svgfixer.js
Created June 16, 2016 18:12 — forked from leonderijke/svgfixer.js
Fixes references to inline SVG elements when the <base> tag is in use.
/**
* SVG Fixer
*
* Fixes references to inline SVG elements when the <base> tag is in use.
* Firefox won't display SVG icons referenced with
* `<svg><use xlink:href="#id-of-icon-def"></use></svg>` when the <base> tag is on the page.
*
* More info:
* - http://stackoverflow.com/a/18265336/796152
* - http://www.w3.org/TR/SVG/linking.html