This file contains 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 | |
/** | |
* Plugin Name: Write the year by the shortcode 'anno' | |
* Plugin URI: http://www.multimusen.dk | |
* Description: IAITS. | |
* Version: 1.0 | |
* Author: Per Thykjaer Jensen (inspired by the link below) | |
* Author URI: http://www.multimusen.dk | |
* License: (c) 2013 GPLv3 |
This file contains 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
Do thus | |
git init | |
git add * | |
git config --global user.name "yourUserName" | |
git config --global user.email "your@email.web" | |
git add * | |
git commit -m 'First upload' | |
git push origin master |
This file contains 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
SQL - my collection | |
=================== | |
## CREATE TABLE | |
CREATE TABLE my_table | |
( | |
first_name VARCHAR(50), | |
last_name VARCHAR(50), | |
email VARCHAR(50), |
This file contains 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
<!-- in case of problems with displaying the images chmod 777 and chown daemon:daemon --> | |
<!-- link to media files --> | |
<p> | |
<img src="http://localhost/test/wordpress/wp-content/uploads/2015/03/cropped-download-1.jpg" width="200" height="*"> | |
<p> | |
<!-- image in the template folder --> | |
<p> | |
<img src="<?php bloginfo('stylesheet_directory');?>/images/car.jpg"/ > | |
</p> |
This file contains 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
pandoc -t slidy -s -H _css fowd-laerermoede.md -o index.html |
This file contains 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
### Pandoc terminal command | |
pandoc template.md --bibliography=books.bib -o test.html | |
### How to quote | |
Write something like this: [@bruceLee] or [-@bruceLee] (the last if you don't want to see the author name). |
This file contains 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 | |
// add to top op a file | |
$file_data = "Lorem ipsum sit dolor...\n"; | |
$file_data .= file_get_contents('text.txt'); | |
file_put_contents('text.txt', $file_data); | |
?> |
This file contains 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 | |
class AQCreader { | |
function AQCPostsNumberOf() { | |
$laes = file_get_contents('AQC-Index-2010.txt'); | |
$AQCarray = explode("\n", $laes); | |
echo (count( $AQCarray ) + 1); // number of lines in file | |
} | |
} | |
?> |
This file contains 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 | |
/* Count: 001 002 003 */ | |
$invID = 11; // sample | |
$invID = str_pad($invID, 3, '0', STR_PAD_LEFT); // str_pad(counter,numberlentth,addNumber,whereToAdd) | |
echo $invID; // 011 | |
?> |
This file contains 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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "" | |
sass_dir = "sass" | |
images_dir = "images" | |
javascripts_dir = "javascripts" | |
# You can select your preferred output style here (can be overridden via the command line): |
OlderNewer