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
<?php | |
function my_before($content) { | |
if (is_single()) { | |
$beforecontent = previous_post_link(); ?> | <?php next_post_link(); | |
$content = $beforecontent . $content; | |
return $content; | |
} | |
return $content; | |
} | |
add_filter('the_content', 'my_before'); |
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
.et_portfolio_image { | |
padding-top: 100%; | |
} | |
.et_portfolio_image img { | |
position: absolute; | |
height: 100%; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; |
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
<div class="original-image"> | |
<p>original image</p> | |
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/14179/image.png"> | |
</div> | |
<div class="image"> | |
<p>object-fit: fill</p> | |
<img class="object-fit_fill" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/14179/image.png"> | |
</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
if (!require("data.table")) { | |
install.packages("data.table") | |
} | |
if (!require("reshape2")) { | |
install.packages("reshape2") | |
} | |
require("data.table") | |
require("reshape2") |
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
Problem solved. Faulty code in line 16: geom_line(aes(y = monthly$CumOil, colour = "CumOil, 1000 m3")) | |
R version 3.1.0 (2014-04-10) -- "Spring Dance" | |
Copyright (C) 2014 The R Foundation for Statistical Computing | |
Platform: i386-w64-mingw32/i386 (32-bit) | |
Code: | |
library("ggplot2") | |
ggplot(monthly[monthly$Well_N == "NSD1",],aes(Date_m)) + |
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
library("RODBC") #load package | |
db<-file.path("C:/path/to/your/database.accdb") #connect database. | |
#Note the UNIX style slash (/). "\" is "escape character" so all "\"you should replace either with "/" or "\\" | |
channel<-odbcConnectAccess2007(db) #internal RODBC function | |
dataSetName<-sqlFetch(channel,"TableName") #read particular table from Access database file. |
NewerOlder