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
if (($xml = simplexml_load_file('http://www.cba.am/_layouts/rssreader.aspx?rss=280F57B8-763C-4EE4-90E0-8136C13E47DA')) != false) { | |
$items = $xml->channel->item; | |
$c1 = $items[0]; | |
$dolar = $c1->title; | |
$dolar = explode("-", $dolar); | |
$c2 = $items[9]; | |
$euro = $c2->title; | |
$euro = explode("-", $euro); |
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
function simple_crud($table_name) { | |
$this->load->helper('inflector'); | |
$this->load->helper('string'); | |
$tables = $this->db->list_tables(); | |
foreach ($tables as $table) { | |
$table = str_replace("a3m_", '', $table); | |
$table = str_replace("qh_", '', $table); | |
$table = str_replace("ref_", '', $table); |
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
<!-- MarketGidComposite Start --> | |
<div id="MarketGidScriptRootC589741"> | |
<div id="MarketGidPreloadC589741"> | |
<a id="mg_add589741" href="http://usr.marketgid.com/demo/celevie-posetiteli/" target="_blank"> | |
<img src="//cdn.marketgid.com/images/marketgid_add_link.png" style="border:0px"> | |
</a> | |
<br> | |
<a href="http://marketgid.com/" target="_blank">Загрузка... | |
</a> | |
</div> |
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
git filter-branch --tree-filter 'rm -rf node_modules' --prune-empty HEAD | |
echo node_modules/ >> .gitignore | |
git add .gitignore | |
git commit -m 'Removing node_modules from git history' | |
git gc | |
git push origin master --force |
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
alias shit="git" | |
#run this command in command line and you can make | |
shit init # which is equal to git init | |
shit push origin master | |
shit pull origin master | |
and so on... :) |
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 | |
import os | |
import xml.parsers.expat | |
from xml.sax.saxutils import escape | |
from optparse import OptionParser | |
from math import log10 | |
# How much data we process at a time |
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
/** | |
* PhantomJS script to capture/render screenshots of the slides of a Reveal.js powered slideshow. | |
*/ | |
var page = require('webpage').create(); | |
var args = require('system').args; | |
// Get url to render from command line. | |
var url; | |
if (args.length < 2) { |
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
0x0085f718c11E5fCaF7B25eAdCCBcD7144823a6A9 |
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
0x0044Eb0651586dF0176B682c71C6B81Fa56Df54B |
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
0xDb54a08f007580CdABBc3B388935Ce1293F55Ce8 |
OlderNewer