Skip to content

Instantly share code, notes, and snippets.

View bbog's full-sized avatar

Bogdan BUCUR bbog

View GitHub Profile
@bbog
bbog / request.js
Last active April 30, 2020 12:29
XHR Request
var request = function (options) {
// just in case
options = options || {};
var url = options.url,
method = options.method || 'GET',
onSuccess = options.onSuccess,
onError = options.onError,
params = options.params,
@bbog
bbog / .footer.html
Created June 1, 2017 07:22
Custom mod autoindex - footer
@bbog
bbog / .header.html
Created June 1, 2017 07:20
Custom mod autoindex - header
<html>
<head>
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@bbog
bbog / .htaccess
Created June 1, 2017 07:11
Custom mod autoindex
# STRONG HTACCESS PROTECTION
<Files ~ "^.*.([Hh][Tt][Aa])">
order allow,deny
deny from all
</Files>
# DIRECTORY CUSTOMIZATION
<IfModule mod_autoindex.c>
# SET INDEX OPTIONS
IndexOptions IgnoreCase FoldersFirst SuppressHTMLPreamble
function fizzbuzz(n){
var ft='Fizz',bt='Buzz',f=(n%3==0),b=(n%5==0);
return (f&&b)?ft+bt:f?ft:b?bt:n;
}