Skip to content

Instantly share code, notes, and snippets.

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
<?php
require_once('cytco/library/nusoap/nusoap.php');
$url="http://212.16.76.90/ws/sms.asmx?WSDL";
$client = new nusoap_client($url, 'wsdl');
$client->soap_defencoding = 'UTF-8';
$client->decode_utf8 = true;
$param=array(
@abrahamfast
abrahamfast / simpleLogg.php
Last active August 29, 2015 14:18
Simple Log
<?php
file_put_contents('/var/www/log',print_r($_REQUEST,true));
file_put_contents('/var/www/log',file_get_contents('/var/www/log').print_r($_REQUEST,true)."\n");
@abrahamfast
abrahamfast / JsRegExpMatch.js
Last active August 29, 2015 14:19
Good Match
// jQuery Find RegExp {Brack Value} From Any Text Just Text
var brackValue = /[{][A-Za-z]+[}]/gi;
// jQuery RegExp for Numbers
//select integers only
var intRegex = /[0-9 -()+]+$/;
//match any ip address
var ipRegex = 'bd{1,3}.d{1,3}.d{1,3}.d{1,3}b';
@abrahamfast
abrahamfast / index.php
Last active February 3, 2016 10:23
smsati Send Sms
<?php
$client = new SoapClient('http://mehrafraz.com/webservice/Service.asmx?wsdl');
$client->SendSms([
"cUserName" => "secret",
"cPassword" => "secret",
"cBody" => "Hello Cytco :) ",
"cSmsnumber" => "09305476531",
"cGetid" => 0,
"nCMessage" => 1,
@abrahamfast
abrahamfast / unique.js
Last active August 29, 2015 14:19
function unique array
var a=[1,5,1,6,4,5,2,5,4,3,1,2,6,6,3,3,2,4];
function unique(list) {
var result = [];
$.each(list, function(i, e) {
if ($.inArray(e, result) == -1) result.push(e);
});
return result;
}
$(document).on( "ready", function(){
$('selector').click();
})
@abrahamfast
abrahamfast / BladeChangeEnFa.php
Created May 1, 2015 20:27
Change en to fa all numbersinto all pages when page compile with blade
<?php
Blade::extend(function($view, $compiler)
{
$pat = $compiler->createMatcher('traverse_farsi');
return preg_replace($pat, '$1<?php echo traverse_farsi($2) ;?>', $view);
});
function traverse_farsi ($str){
$farsi_chars = ['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];
@abrahamfast
abrahamfast / module_creator.php
Created May 4, 2015 05:34
Create a custom module
<?php
// Turn on debugging level
$Vtiger_Utils_Log = true;
include_once('vtlib/Vtiger/Menu.php');
include_once('vtlib/Vtiger/Module.php');
$module = new Vtiger_Module();
$module->name = 'Store';//(No space in module name)
$module->save();
From: Sina Mehri [mailto:sinamehri@gmail.com]
Sent: Wednesday, April 15, 2015 10:22 AM
To: Hooman Kouhfallah
Subject: list of multi extension
Ext #1 :
101 - 1012 - 1013 - 1014 - 1015 - 1016 - 1017 - 1018