Skip to content

Instantly share code, notes, and snippets.

View Ser-Gen's full-sized avatar
💭
https://github.com/pixhub-int/image-processing

Sergei Vasilev Ser-Gen

💭
https://github.com/pixhub-int/image-processing
  • Voronezh, Russia
View GitHub Profile
@Ser-Gen
Ser-Gen / ovrload
Last active August 29, 2015 14:13 — forked from loyd/ovrload
#!/bin/bash
# ovrload.ru file uploader
# ovrload — former troloload
VERSION='v0.1.3'
URL='http://ovrload.ru'
SHORTER_URL='http://tinyurl.com'
FAILURES=0 # number of upload fails
LONGTIME=0 # whether to make long-time links
// Переписать на https://github.com/chjj/marked
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
/*!
* $.preload() function for jQuery – http://mths.be/preload
* Preload images, CSS and JavaScript files without executing them
* Script by Stoyan Stefanov – http://www.phpied.com/preload-cssjavascript-without-execution/
* Slightly rewritten by Mathias Bynens – http://mathiasbynens.be/
* Note that since this script relies on jQuery, the preloading process will not start until jQuery has finished loading.
*/
jQuery.preload = function(array) {
var length = array.length,
//EnhanceJS isIE test idea
//detect IE and version number through injected conditional comments (no UA detect, no need for cond. compilation / jscript check)
//version arg is for IE version (optional)
//comparison arg supports 'lte', 'gte', etc (optional)
function isIE(version, comparison) {
var cc = 'IE',
b = document.createElement('B'),
@Ser-Gen
Ser-Gen / prefix.js
Last active December 16, 2015 21:39 — forked from barneycarroll/detectCSS.js
Проверка поддержки CSS-свойств
// позволяет проверить, поддерживается ли CSS-свойство.
// если да, возвращается свойство с нужным браузеру префиксом, нет — false
// например,
// var e = document.getElementById( 'element' ),
// s = prefix( 'transform' );
// if (s) {
// e.style[s] = 'rotate( 45deg )';
// }
//
function prefix (property) {