<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - chupzzz</title>
<link>http://snipplr.com/users/chupzzz</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 21:49:06 GMT</pubDate>
<item>
<title>(PHP) Cut long string to n symbols preserving words (UTF-8)</title>
<link>http://snipplr.com/view/65763/cut-long-string-to-n-symbols-preserving-words-utf8/</link>
<description><![CDATA[ <p>Cut the string to needed length with keeping words.</p> ]]></description>
<pubDate>Fri, 22 Jun 2012 23:31:59 GMT</pubDate>
<guid>http://snipplr.com/view/65763/cut-long-string-to-n-symbols-preserving-words-utf8/</guid>
</item>
<item>
<title>(PHP) PHP array_diff() full comparison</title>
<link>http://snipplr.com/view/63685/php-arraydiff-full-comparison/</link>
<description><![CDATA[ <p>PHP built-in function **array_diff($one, $two)** working in one-way only: it not will return new elements from $two. This simple function do that.</p> ]]></description>
<pubDate>Fri, 02 Mar 2012 20:13:57 GMT</pubDate>
<guid>http://snipplr.com/view/63685/php-arraydiff-full-comparison/</guid>
</item>
<item>
<title>(JavaScript) Simple JS templater</title>
<link>http://snipplr.com/view/62129/simple-js-templater/</link>
<description><![CDATA[ <p>Using:
t("Hello {who}!", { who: "JavaScript" });
t("Hello {who}! It's {time} ms since epoch.", { who: "JavaScript", time: Date.now });</p> ]]></description>
<pubDate>Mon, 26 Dec 2011 22:15:53 GMT</pubDate>
<guid>http://snipplr.com/view/62129/simple-js-templater/</guid>
</item>
<item>
<title>(PHP) Hide /node page from access (Drupal)</title>
<link>http://snipplr.com/view/56447/hide-node-page-from-access-drupal/</link>
<description><![CDATA[ <p>Here present basicaly usage example, but you can add some logic here if you want to grant access for someone.</p> ]]></description>
<pubDate>Tue, 12 Jul 2011 17:14:18 GMT</pubDate>
<guid>http://snipplr.com/view/56447/hide-node-page-from-access-drupal/</guid>
</item>
<item>
<title>(Bash) Run Drupal cron authorized</title>
<link>http://snipplr.com/view/55785/run-drupal-cron-authorized/</link>
<description><![CDATA[ <p>If you want to run your Drupal cron from logged in user you need to run this shell-script instead of clear wget.</p> ]]></description>
<pubDate>Mon, 27 Jun 2011 22:48:26 GMT</pubDate>
<guid>http://snipplr.com/view/55785/run-drupal-cron-authorized/</guid>
</item>
<item>
<title>(PHP) Drupal cron from PHP Cli</title>
<link>http://snipplr.com/view/55784/drupal-cron-from-php-cli/</link>
<description><![CDATA[ <p>Running 
_php /path/to/your/site/cron.php_
will give an error. You need to create some php-file into root of your Drupal-site and put into it the code of this snippet. Then just add to your cronjob the full path to your php-script.</p> ]]></description>
<pubDate>Mon, 27 Jun 2011 22:01:23 GMT</pubDate>
<guid>http://snipplr.com/view/55784/drupal-cron-from-php-cli/</guid>
</item>
<item>
<title>(PHP) INN number (Russia) checksum / Проверка валидности номера ИНН</title>
<link>http://snipplr.com/view/55236/inn-number-russia-checksum-----/</link>
<description><![CDATA[ <p>Функция считает контрольную сумму для переданного аргумента.
- - - -
(c) Anton Pribora
http://anton-pribora.ru/articles/php/php-javascript-inn/</p> ]]></description>
<pubDate>Tue, 14 Jun 2011 21:52:40 GMT</pubDate>
<guid>http://snipplr.com/view/55236/inn-number-russia-checksum-----/</guid>
</item>
<item>
<title>(PHP) PFR (Russia) number checksum / Проверка номера Пенсионного Фонда России</title>
<link>http://snipplr.com/view/55235/pfr-russia-number-checksum------/</link>
<description><![CDATA[ <p>This function checks PFR (Russia) number for valid value.
 
Функция проверяет правильность номера страхового свидетельства ПФР, высчитывая его контрольную сумму.
(источник алгоритма: http://forum.klerk.ru/showpost.php?p=50544789&amp;postcount=3).
(ПФР - Пенсионный Фонд Российской Федерации).</p> ]]></description>
<pubDate>Tue, 14 Jun 2011 21:46:49 GMT</pubDate>
<guid>http://snipplr.com/view/55235/pfr-russia-number-checksum------/</guid>
</item>
</channel>
</rss>