-
share, skupiny, mobil(HTML5), one click, offline, export dat, read role
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
/** | |
* A script for transitioning to HTTPS for clients that support it. | |
* | |
* This script will make a request to https:yourdomain.com/ping?_clb_=? | |
* from the loaded http: document. | |
* If the request is successful, it will convert all the internal links | |
* to https: | |
*/ | |
jQuery(function ($) { | |
if(location.protocol === 'http:') { |
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
#! /bin/sh | |
# | |
# Author: Dumitru Uzun (DUzun) | |
# | |
# Ussage: | |
# backup [-k <days>] [-s <subdir>] [-d <database>] [-e <exclude_tables_list>] | |
# | |
pass='<best-password-ever>' | |
user=backup |
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
/** | |
* Set cache control headers and manage http cache logic. | |
* | |
* @param (int|bool) $expires: true - use cache, false - no cache, int - expires timeout | |
* @param (time) [$modified]: Last modification time stamp | |
* @param (string) [$etag]: ETag content identifier | |
* @param (int) [$die]: 0 - no die, 1 - die on 304, -1 - no 304 headers | |
* | |
* @return (mixed) status code if cache, false if headers sent, true otherwise | |
* |
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
<a class="btn btn-default btn-info bookmarklet" href="javascript:(function(d){var a=d.document,h=function(){},c=a.body||a.getElementsByTagName("body")[0],f=a.documentElement||a.getElementsByTagName("html")[0],k=[c,f,a],l=["webkit","khtml","moz","ms",""],g=["contextmenu","selectstart","select","mousedown","mouseup"],b=d.Selection,e=b&&b.prototype;e&&(e.removeAllRanges=h,b=a.selection)&&(b.clear=h);for(e=k.length;e--;)if(f=k[e]){for(b=g.length;b--;)f["on"+g[b]]=null;if(a=f.style)for(a.cursor="",a.webkitTouchCallout="initial",b=l.length;b--;)a[((c=l[b])?"-"+c+"-":c)+"user-select"]="initial"}(c=d.jQuery||d.Zepto)&&c(d).off(g)})(this);"> | |
Enable Select | |
</a> |
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
//******************************************* | |
// Level 1, basic API, minimum support | |
//******************************************* | |
/* | |
Modules IDs are strings that follow CommonJS | |
module names. | |
*/ | |
//To load code at the top level JS file, | |
//or inside a module to dynamically fetch |
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
/** | |
* Finds maximum zIndex of an element | |
*/ | |
;(function (global) { | |
var $ = global.jQuery || global.Zepto; | |
var maxZIndex = function maxZIndex(el,min) { | |
var el = this | |
, zIdx = el.css('zIndex') |
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
/** | |
* Gets outerHTML of an element | |
*/ | |
;(function (global) { | |
var $ = global.jQuery || global.Zepto; | |
$.fn.outerHTML = function fouterHTML() { | |
$t = $(this); | |
if ('outerHTML' in $t[0]) { |