- select-css (CSS only) - http://filamentgroup.github.io/select-css/demo/
- fauxSelect - https://gist.github.com/philfreo/4afbf63f486a772c4a4c
- SelectBoxIt - http://gregfranko.com/jquery.selectBoxIt.js
- Select2 - http://ivaynberg.github.io/select2/
- Chosen - http://harvesthq.github.io/chosen/
- DropKick.js - http://robdel12.github.io/DropKick/
- Multiple Select - http://wenzhixin.net.cn/p/multiple-select/docs/
- multiselect.js - http://loudev.com/
- FancySelect - http://code.octopuscreative.com/fancyselect/
- Bootstrap-Select - http://silviomoreto.github.io/bootstrap-select/
This file contains hidden or 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
public function convertMongoDBCursorToArray($dbcursor) { | |
$counter=0; $x=0; | |
$finalarray = Array() ; $convertedarray=Array() ; | |
foreach($dbcursor as $document) { $finalarray[$counter]=$document; $counter++;} | |
$finalarray=array_values($finalarray); | |
$thissize = count($finalarray); | |
$counter=0; |
This file contains hidden or 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
# | |
# Avoid the message 'External file changes sync may be slow: The current inotify(7) watch limit is too low.' from JetBrains products. | |
# | |
# 1. Create the file /etc/sysctl.d/60-jetbrains.conf and paste this code | |
# 2. Restart the sysctl service: sudo sysctl -p --system | |
# 3. Restart the IDE | |
# | |
# More info: | |
# https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit |
This file contains hidden or 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
# Remove foreman | |
yum remove remove foreman foreman-installer foreman-proxy | |
rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs | |
rm /etc/httpd/conf.d/foreman.conf | |
# Remove puppet | |
yum remove puppet puppetmaster puppet-common puppetmaster-common puppetlabs-release | |
rm -rf /usr/lib/ruby/vendor_ruby/puppet /usr/share/puppet /var/lib/puppet /etc/puppet | |
rm /etc/apache2/conf.d/puppet.conf |
This file contains hidden or 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 | |
/** | |
* Close the connection to the browser but continue processing the operation | |
* @param $body | |
*/ | |
public function closeConnection($body, $responseCode){ | |
// Cause we are clever and don't want the rest of the script to be bound by a timeout. | |
// Set to zero so no time limit is imposed from here on out. | |
set_time_limit(0); |
This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^index\.php$ - [L] | |
RewriteRule (.*) ./index.php?id=$1 [L] | |
</IfModule> |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
<script type="text/javascript" src="jquery-1.7.1.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$.getJSON('estados_cidades.json', function (data) { |