I hereby claim:
- I am faisalhmohd on github.
- I am mohdfaisal (https://keybase.io/mohdfaisal) on keybase.
- I have a public key whose fingerprint is 042A A11E D2D7 BE9B FA2B B210 3E79 35BE C478 2F82
To claim this, I am signing this object:
var thehtmlstring = | |
'<h1 id="theid">headingone</h1>' + | |
'<p class="comments-section">'+ | |
'thetext' + | |
'<div class="thediv">' + | |
'<div class="theinnerdiv">theinnerdivtext</div>' + | |
'</div>' + | |
'</p>'; | |
function extractTag(string, tag){ |
function getRSSUrl(tag){ | |
return '/tagged/'+ tag +'/rss' | |
} | |
var rssurl = getRSSUrl('featured'); | |
$.get(rssurl, function(data) { | |
// Append to divs | |
}); |
function getLocation(){ | |
return window.location.pathname; | |
} | |
var currentLocation = getLocation(); |
apt-get install -y npm | |
npm install -g n | |
# Get NodeJS stable. Use 'n latest' for latest build | |
n stable | |
# Remove existing NodeJS symbolic link (optional) | |
rm -r /usr/bin/node | |
# Replace existing symbolic link |
sudo add-apt-repository ppa:webupd8team/atom | |
sudo apt-get update | |
sudo apt-get install atom |
<?php $ID = 0; // Page ID to refer ?> | |
<a href="<?php echo get_page_link($ID); ?>">Page Name</a> | |
I hereby claim:
To claim this, I am signing this object:
# Running on ubuntu:latest | |
FROM ubuntu | |
# Update and install NodeJS + NPM | |
RUN apt-get update | |
RUN apt-get install -y nodejs npm | |
# Creating symlink | |
RUN ln -s /usr/bin/nodejs /usr/bin/node |
<?php | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$perpage = 5; | |
$args = array ( | |
'pagination' => true, | |
'posts_per_page' => $perpage, | |
'post_type' => 'post', | |
'paged' => $paged | |
); |
<?php | |
$paged = $_GET['paged']; | |
$perpage = 15; // Choose the number of posts per loop | |
$args = array ( | |
'pagination' => true, | |
'posts_per_page' => $perpage, | |
'post_type' => 'post', | |
'offset' => $paged*$perpage | |
); |