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
msgid "" | |
msgstr "" | |
"Project-Id-Version: Oxygen\n" | |
"Report-Msgid-Bugs-To: \n" | |
"POT-Creation-Date: 2013-03-06 18:28+0200\n" | |
"PO-Revision-Date: Thu May 05 2016 11:26:30 GMT+0300 (FLE Daylight Time)\n" | |
"Last-Translator: Tomi Toivio <tomi.olavi.toivio@gmail.com>\n" | |
"Language-Team: \n" | |
"Language: Finnish\n" | |
"Plural-Forms: nplurals=2; plural=n != 1\n" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: Geocoder Plugin Example | |
Plugin URI: http://api.okf.fi/console/ | |
Description: Example WordPress Plugin for Geocoder API | |
Version: 1.0 | |
Author: Tomi Toivio | |
Author URI: http://fi.flossmanuals.net | |
License: GPL2 | |
*/ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
local P = {} | |
AI_SOV = P | |
function P.ProposeDeclareWar( minister ) | |
local ai = minister:GetOwnerAI() | |
local ministerCountry = minister:GetCountry() | |
local strategy = ministerCountry:GetStrategy() | |
local year = ai:GetCurrentDate():GetYear() | |
local month = ai:GetCurrentDate():GetMonthOfYear() |
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
#!/usr/bin/env php | |
<? | |
require 'scraperwiki.php'; | |
$html = scraperwiki::scrape("https://www.eura2007.fi/rrtiepa/projektilista.php?rahasto=ALL&type=xml"); | |
$eura = preg_replace("/&/", "&", $html); | |
$projektilista = simplexml_load_string($eura); | |
$unique_keys = array('projektikoodi'); |
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 | |
$handle = fopen("eura.csv", "w"); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://www.eura2007.fi/rrtiepa/projektilista.php?rahasto=EAKR&type=xml"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$eura = curl_exec($ch); | |
curl_close($ch); | |
$eura = preg_replace("/&/", "&", $eura); | |
$projektilista = simplexml_load_string($eura); | |
foreach ($projektilista->projekti as $projekti): |
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
# This file is distributed under the same license as the Booktype package. | |
# | |
# Translators: | |
# Tomi Toivio <tomi@flossmanuals.net>, 2013 | |
msgid "" | |
msgstr "" | |
"Project-Id-Version: Booktype\n" | |
"Report-Msgid-Bugs-To: \n" | |
"POT-Creation-Date: 2013-05-05 19:22+0200\n" | |
"PO-Revision-Date: 2013-12-20 04:06+0200\n" |
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
/* Call the function when comment is posted */ | |
add_action('comment_post', 'my_admin_reply'); | |
function my_admin_reply($id) { | |
/* Only do it when posting from admin */ | |
if (is_admin()) { | |
$mycomment = get_comment($id); | |
$mycommentid = $mycomment->comment_ID; | |
$mycommentparent = $mycomment->comment_parent; |