This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type Bits uint8 | |
const ( | |
F0 Bits = 1 << iota |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Capitalize an string|array | |
* Ex: Fred El BRAVO => Fred el Bravo | |
* Empresa Xpto s/a => Empresa Xpto S/A | |
* | |
* @param string|array $input | |
* @param array $exclude {If passed an array, exclude any element} | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Convert MySQL query with LIMIT to work in MS SQL Server | |
* Author: Elison Gomes | |
* | |
* @param string $query | |
* @return string | |
* | |
* Ex: convertLimit("select id, name from person limit 0, 10"); | |
*/ |