Skip to content

Instantly share code, notes, and snippets.

View matheuseduardo's full-sized avatar
:octocat:
coding

Matheus Eduardo matheuseduardo

:octocat:
coding
View GitHub Profile
@matheuseduardo
matheuseduardo / inflections.php
Last active March 15, 2016 19:18
arquivo inflections.php para CakePHP 2.X na língua PT-BR
<?php
/**
* Ajustes das inflections para português
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @author Juan Basso <[email protected]>
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
@matheuseduardo
matheuseduardo / sample.php
Last active February 22, 2016 12:45 — forked from miguelfrmn/simpleimage.php
SimpleImage PHP Class
<?php
require_once('simpleimage.class.php');
// Usage:
// Load the original image
$image = new SimpleImage('lemon.jpg');
// Resize the image to 600px width and the proportional height
$image->resizeToWidth(600);
Verifying that +matheuseduardo is my blockchain ID. https://onename.com/matheuseduardo
@matheuseduardo
matheuseduardo / fix purple-black textures.md
Last active January 7, 2016 02:18
How to fix purple and black textures in CS Pro Mod (1.1) after install

This requires Counter-Strike Source to be brought for your Steam account

  1. Install Counter-Strike Source and Source SDK Base 2007.

  2. In the \steamapps\common\Source SDK Base 2007 folder create a new folder called cstrike.

  3. Then download the GCFscape Installer and install it. I used the "GCFScape v1.8.5 Full" version.

  4. Open GCFscape and click on File > Open and go to steamapps/common/Counter-Strike Source/cstrike and find the cstrike_pak_dir.vpk file and then press Open.

@matheuseduardo
matheuseduardo / get-page-by-slug.php
Last active November 20, 2024 21:12 — forked from micahblu/gist:5786794
get_page_by_slug - wordpress
<?php
/**
* Retrieve a page given its slug.
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $page_slug Page slug
* @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A.
* Default OBJECT.
* @param string|array $post_type Optional. Post type or array of post types. Default 'page'.
@matheuseduardo
matheuseduardo / README.md
Last active August 29, 2015 14:06
jquery vertical progress bar w/ animation

Just a sample of code.