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
<? | |
//$im = ImageCreate(250,45); // Blank Background | |
$im = ImageCreateFromPng("images/image_prev_bg.png"); // PNG Image Background | |
$white = ImageColorAllocate($im,255,255,255); | |
$black = ImageColorAllocate($im,0,0,0); | |
$blue = ImageColorAllocate($im,0xF2,0xFF,0xFF); | |
ImageTTFText($im, $textsize, 0, 10, 30, $black, "arial.ttf", $text); | |
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
pre { | |
font-size: 12px; | |
padding: 0; | |
margin: 0; | |
background: #f0f0f0; | |
border-left: 1px solid #ccc; | |
border-bottom: 1px solid #ccc; | |
line-height: 20px; /*--Height of each line of code--*/ | |
background: url(pre_code_bg.gif) repeat-y left top; /*--Background of lined paper--*/ | |
width: 600px; |
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
<?php | |
/** | |
* Define error | |
* | |
* @author Dmitry Nesteruk, Andrey Kotlyarov | |
* @param string $fieldName | |
* @param string $message | |
* @return void | |
*/ | |
public function defineError($fieldName, $message) |
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
<?php | |
$this->form = new BillingForm(); | |
$Paypal->sendPayment(); | |
if(in_array($Paypal->error_codes, 10527)){ | |
$this->form->defineError('credit_card',"Paypal doesn't like your credit card number. Please try another."); | |
} |
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
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [-p|--paginate|--no-pager] [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS] | |
The most commonly used git commands are: | |
add Add file contents to the index | |
bisect Find the change that introduced a bug by binary search | |
branch List, create, or delete branches | |
checkout Checkout a branch or paths to the working tree | |
clone Clone a repository into a new directory | |
commit Record changes to the repository | |
diff Show changes between commits, commit and working tree, etc |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
// 238! | |
function L(U,C){var d=document,f='firstChild',r='readyState',h=d.documentElement[f],s=d.createElement('script'),m=s[r]?'onreadystatechange':0;s.src=U;s[m||'onload']=function(){if(!m||/ded|te/.test(s[r]))s[m]=0,C()}h.insertBefore(s,h[f])} | |
// async loading of javascript files, starting asap. | |
L("http://example.com/example.js",function () { | |
doSomething(); |
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
@font-face { | |
// define the font name to use later as font-family | |
font-family: "uni05_53"; | |
// define the font for IE which totally ignores local() directive | |
src: url(../font/uni05/uni05_53.eot); | |
// use local to let IE jump this line and | |
// redefine the src for this font in order to let | |
// other clever browser download *only* this font rather than 2 | |
src: local("uni05_53"), url(../font/uni05/uni05_53.ttf) format("truetype"); | |
} |
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
Pauls-MacBook-Pro:textorize-img thrashr888$ textorize --help | |
Usage: /usr/bin/textorize [options] string | |
-f, --font=[FONT] Font name | |
-s, --size=[SIZE] Font size in point | |
-l, --lineheight=[HEIGHT] Line height in point | |
-o, --output=[FILENAME] Specify filename for saving | |
-b, --obliqueness=[ANGLE] Slant angle | |
-c, --color=[COLOR] Render text in specific color | |
--background=[COLOR] Render background in specific color | |
-h, --help Display this message and exit |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>Wishcraft Admin Interface</title> | |
<link rel="shortcut icon" href="/favicon.ico" /> | |
<?php use_stylesheet('admin.css') ?> | |
<?php include_javascripts() ?> | |
<?php include_stylesheets() ?> | |
</head> |
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
options: | |
auto_shutdown: false | |
culture: null | |
default_culture: en | |
use_flash: true | |
logging: '1' | |
timeout: 1800 | |
attributeHolder: | |
admin_module: { lyra_content.filters: { module: { text: home }, action: { text: '' }, lyra_template_id: null, lyra_type_id: null, lyra_version_id: null, slug: { text: '' }, content: null, guid: null, multiple: null, created_at: null, updated_at: null }, lyra_content.page: 1, lyra_content.sort: [null, null], questionaire.sort: [null, null], sf_guard_user.filters: { is_active: '1', is_super_admin: null, username: null, algorithm: null, salt: null, password: null, last_login: null, created_at: null, updated_at: null, groups_list: null, permissions_list: null }, sf_guard_user.page: 1, sf_guard_user.sort: [null, null] } | |
sfGuardSecurityUser: { user_id: '1' } |
OlderNewer