[\p{IsCyrillic}]+,[а-яА-ЯёЁ]+- Cyrillic words^[\s\t]+?(font|background|border|link|vlink|color)(-\w+)?:.*$- CSS property lines
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
| #!/bin/sh | |
| if [ $1 ]; then | |
| mkdir -p ./$1/src/sass | |
| cd ./$1/ | |
| ln -s ~/public_html/sass/plugins ./src/sass/ | |
| compass init --css-dir static/css --images-dir static/i --javascripts-dir static/js --sass-dir src/sass -s nested --using blueprint | |
| echo "Now You may run 'compass watch' at $1" | |
| else | |
| echo "usage: $project [project name]" | |
| fi |
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
| /* Responsive Vertical Layout */ | |
| h2 { margin-top:0; margin-bottom: 1ex; font-variant: small-caps; background-color: rgba( 128, 128, 128, .5); position: relative; left: -.7ex; padding: 0 .7ex; width: 100%;}p { text-align: justify;}/* vresp */html { width: 100%; height: calc(100% - 8px);}.head, .main, .foot { min-height: 50px; background-color: rgba(129,130,128,.5); margin: 0 1ex 1ex; display:inline-block; width: calc( 100% - 2ex ); vertical-align: top;}.head, .foot { height: 25%; max-height: 120px;}.main { min-height: 300px; height: calc( 100% - 240px - 1ex ); white-space: nowrap; /* remove spaces between blocks */}.main > * { /* wrap text normaly */ white-space: normal; overflow: auto; max-height: calc( 100% - 2ex );} .wrap { max-width: 800px; min-width: 200px; width: 100%; margin: 0 auto; position: relative; height:100%;}body { height: 100%;}@media only screen and (max-height: 560px ) { /* 120 + 120 + 300 + |
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
| <a href="javascript:window.history.back();">←</a> | |
| <a href="javascript:(function(){window.location.search+='&webm=1';})();">yt:h5v</a> | |
| <a href="javascript:(function(h){var r=h.innerHTML.match(/<!--\[if\s(?:[^<]+|<(?!!\[endif\]-->))*<!\[endif\]-->/gim);for(x in r){h.innerHTML+=r[x].replace(/<!--.*>/,'');};})(document.getElementsByTagName('html')[0]);">use IE styles</a> | |
| <a href="javascript:(function(tags){var tag,obj={},all=0;for ( key in tags){tag = (tags[key].tagName+'').toLowerCase();all++;obj[tag]++ || (obj[tag]=1);}console.log('Tags:',obj);alert(all)})(document.getElementsByTagName('*'));">count html tags on page</a> | |
| <a href="javascript:(function(b,w,h){b.style.width=w;b.style.height=h;b.style.overflow='hidden';})(document.getElementsByTagName('body')[0],'340px','640px')">iPhone</a> | |
| <a href="javascript:(function(b,w,h){b.style.width=w;b.style.height=h;b.style.overflow='hidden';})(document.getElementsByTagName('body')[0],'1039px','768px')">iPad</a> | |
| <a href="javascript:(function(b,w,h){b.style.width=w;b.style |
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 | |
| function get_func_argNames($funcName,$className=null) { | |
| if($className){ | |
| $f = new ReflectionMethod($className,$funcName); | |
| }else{ | |
| $f = new ReflectionFunction($funcName); | |
| } | |
| $result = array(); | |
| foreach ($f->getParameters() as $param) { | |
| $result[$param->name] = $param->isOptional()?:'required'; |
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
| HTMLCanvasElement.prototype.addNoise = function(r, g, b, a, l) { | |
| // default variables: red, green, blue, alpha, light | |
| a||(a=-.4); | |
| l||(l=.5); | |
| //(!red&&green)||(alpha=green,green=128); | |
| //(!green&&blue)||(brightness=blue,blue=128); | |
| r||(r=1); | |
| g||(g=1); | |
| b||(b=1); | |
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
| #!/bin/bash | |
| find . -type d -exec chmod 777 {} \; | |
| find . -type f -exec chmod 644 {} \; | |
| sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx * | |
| sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx * |
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
| var doc = document.documentElement; | |
| doc.ondragover = function () { | |
| //this.className = 'hover'; | |
| return false; | |
| }; | |
| doc.ondragend = function () { | |
| //this.className = ''; | |
| return false; | |
| }; | |
| doc.ondrop = function (event) { |
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> | |
| <html> | |
| <head> | |
| <style> | |
| body,html,form{height:100%;width:100%; | |
| margin:0; | |
| padding:0; | |
| background-color: rgba(255,255,255,.5); | |
| color: #222; |
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
| -- Simple package with BDD | |
| CREATE OR REPLACE PACKAGE simple_package IS | |
| -- | |
| PROCEDURE BDD_example ( | |
| BDD ARRAY | |
| ); | |
| END; | |
| / | |
| CREATE OR REPLACE PACKAGE BODY simple_package IS | |
| PROCEDURE BDD_example ( |