Special thanks to:
- Download Instant Client from http://www.oracle.com/technetwork/indexes/downloads/index.html#database (you must be registered in Oracle; it's free). You will need
instantclient-basic-*-*.zipandinstantclient-sdk-*-*.zipfiles.
| <?php | |
| /* | |
| * Now with uniform variable syntax (https://wiki.php.net/rfc/uniform_variable_syntax) | |
| * We can do this nice things like in others languages. | |
| * | |
| * Tested in: | |
| * $ php -v | |
| * > PHP 7.0.0-dev (cli) (built: Feb 11 2015 02:07:44) | |
| * > Copyright (c) 1997-2015 The PHP Group | |
| * > Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies |
Special thanks to:
instantclient-basic-*-*.zip and instantclient-sdk-*-*.zip files.| (function () { | |
| "use strict"; | |
| /** | |
| * Compare dates. | |
| * @param {Date|String} date instance or string in W3C format | |
| * @throws TypeError | |
| * @return {int} 0 = equals, -1 = gt, 1 = lt | |
| */ | |
| Date.prototype.compare = function (date) { |
| #include <windows.h> | |
| #include <gl/gl.h> | |
| LRESULT CALLBACK WndProc(HWND hWnd, | |
| UINT message, | |
| WPARAM wParam, | |
| LPARAM lParam); | |
| void EnableOpenGL(HWND hWnd, HDC *hDC, HGLRC *hRC); | |
| void DisableOpenGL(HWND hWnd, HDC hDC, HGLRC hRC); |
| <?php | |
| /** | |
| * UUID class | |
| * | |
| * The following class generates VALID RFC 4122 COMPLIANT | |
| * Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
| * | |
| * UUIDs generated validates using OSSP UUID Tool, and output | |
| * for named-based UUIDs are exactly the same. This is a pure | |
| * PHP implementation. |
| "******************************************* | |
| "****** Felipe Francisco - @felipecwb ****** | |
| "****** https://github.com/felipecwb ****** | |
| "******************************************* | |
| "" Vim-PLug core | |
| "***************************************************************************** | |
| if has('vim_starting') | |
| set nocompatible " Be iMproved | |
| endif |
| #!/usr/bin/env bash | |
| set -u | |
| CRED="\033[0;31m" | |
| CYELLOW="\033[1;33m" | |
| CBLUE="\033[0;34m" | |
| CGREEN="\033[0;32m" | |
| CCYAN="\033[0;36m" | |
| CDEFAULT="\033[0m" |
| [user] | |
| name = ... | |
| email = ... | |
| signingkey = ... | |
| [alias] | |
| yolo = "!git add -A && git commit -m \"$(curl -s https://whatthecommit.com/index.txt)\"" | |
| timeline = log --graph --branches --pretty=oneline --decorate --abbrev-commit --all | |
| history = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all --decorate --abbrev-commit |
| #!/usr/bin/env php | |
| <?php | |
| if(!isset($argv[1])) { | |
| die("\nPlease, run: codelikeaboss /your/files/dir\n"); | |
| } | |
| system("clear"); | |
| $filetypes = array("php", "rb", "py", "c", "cpp", "java", "txt", "asp", "html", "css", "js", "ini", "md"); | |
| $dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($argv[1])); |
| <?php | |
| $wsdl = isset($_GET['wsdl']) ? $_GET['wsdl'] : 'http://localhost/?wsdl'; | |
| try { | |
| // Set the WSDL | |
| $soap = new SoapClient($wsdl); | |
| } catch (SoapFault $e) { | |
| die('Unable to read the WSDL: ' . $e->getMessage()); | |
| } |