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
| <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
| /* 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
| #!/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
| #!/bin/bash | |
| cat .gitignore | sed 's/^/\.\//g;s/\(.*\)\/\([0-9a-zA-Z\*\?\.]*\)$/svn propedit svn:ignore "\2" \1 /mg' | bash |
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
| @mixin gradient($from, $to) { | |
| /* fallback/image non-cover color */ | |
| background-color: $from; | |
| /* Firefox 3.6+ */ | |
| background-image: -moz-linear-gradient($from, $to); | |
| /* Safari 4+, Chrome 1+ */ | |
| background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to)); |
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
| #!/usr/bin/env python | |
| # Convert PNG images to GIF, preserving transparency | |
| # 2008 - http://www.coderholic.com/png2gif | |
| import sys | |
| import Image | |
| import random | |
| import optparse | |
| import os |
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
| html, body, div, span, applet, object, iframe, table, caption, | |
| tbody, tfoot, thead, tr, th, td, del, dfn, em, font, img, ins, | |
| kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, | |
| acronym, address, big, cite, code, dl, dt, dd, ol, ul, li, | |
| fieldset, form, label, legend { | |
| vertical-align: baseline; | |
| font-family: inherit; | |
| font-weight: inherit; | |
| font-style: inherit; |
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
| $.fn.editable = function(options) { | |
| var opts = $.extend({}, $.fn.editable.defaults, options); | |
| return this.each(function() { | |
| this.style.webkitApperiance = 'textarea'; | |
| this.contentEditable=true; | |
| }); | |
| } | |
| $.fn.editable.defaults = { | |
| } |
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
| #!/usr/bin/php | |
| <?php | |
| require_once('ChromePhp.php'); | |
| class HTMLMailPart{ | |
| public $content; | |
| public $type; | |
| public $name; | |
| public $path; |