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
@echo off | |
SET stPath=C:\Program Files\Sublime Text 3\sublime_text.exe | |
SET entryName=Open with Sublime Text 3 | |
SET menuText=Open with Sublime Text 3 | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\%entryName%" /t REG_SZ /v "" /d "%menuText%" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\%entryName%" /t REG_EXPAND_SZ /v "Icon" /d "%stPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\%entryName%\command" /t REG_SZ /v "" /d "%stPath% \"%%1\"" /f |
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
/** ************************************************* | |
File: app.module.js | |
*/ | |
(function () { | |
'use strict'; | |
// Defining angularjs Module | |
var app = angular | |
.module('appMaster'); |
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 | |
/** | |
* Converts a character from a colon to HTML | |
* | |
* @param string $value The input string | |
* @return string | |
* @link https://gist.github.com/5716880 | |
* | |
* */ | |
function htmlColon($value) |
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 | |
/** | |
* Interprets an INI file with heritage section | |
* | |
* @param string $filename Filename | |
* @return array | |
* @link https://gist.github.com/4217717 | |
* | |
*/ | |
function parse_ini_file_advanced($filename) |
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 | |
/** | |
* get_called_class < 5.3 [solution] | |
* | |
*/ | |
function get_called_class() | |
{ | |
$objects = array(); | |
$traces = debug_backtrace(); |
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 | |
/** | |
* Returns the sum of occurrences, in an array of a given condition satisfied | |
* | |
* @param mixed $value The value or array to be evaluated | |
* @param string $operator Operator of evaluation | |
* @param string $conditional Conditional assignment | |
* @return integer | |
* @link https://gist.github.com/3100679 | |
* |
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 | |
/** | |
* Removes the style markup in html tags, derived from a text editor | |
* | |
* @param string $value The input string | |
* @return string | |
* @link https://gist.github.com/3078188 | |
* | |
* */ | |
function clearStyle($value) |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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 | |
/** | |
* Checks through recursion, a list of keys that have a value EMPTY or NULL | |
* | |
* @param array $haystack A simple/multi-dimensional array | |
* @param string $mandatory List with the names of keys that will be checked, separated by commas | |
* @return boolean | |
* | |
* */ | |
function is_arrayEmpty($haystack, $mandatory = null) |
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 | |
/** | |
* Checks if a value exists in an array | |
* | |
* @param mixed $needle The value sought | |
* @param array $haystack The array that will be verified | |
* @return boolean | |
* | |
* */ | |
function in_multiarray($needle, $haystack) |
NewerOlder