Skip to content

Instantly share code, notes, and snippets.

View MarkoKaartinen's full-sized avatar

Marko Kaartinen MarkoKaartinen

View GitHub Profile
<TaskerData sr="" dvi="1" tv="4.8u5m">
<dmetric>1440.0,2560.0</dmetric>
<Profile sr="prof10" ve="2">
<cdate>1468738275232</cdate>
<edate>1468740021950</edate>
<flags>2</flags>
<id>10</id>
<mid0>14</mid0>
<mid1>15</mid1>
<App sr="con0" ve="2">

Keybase proof

I hereby claim:

  • I am MarkoKaartinen on github.
  • I am markok (https://keybase.io/markok) on keybase.
  • I have a public key whose fingerprint is A1AD BAA2 0765 64AE 2934 D7FE 4762 4586 BFEB D0DD

To claim this, I am signing this object:

@MarkoKaartinen
MarkoKaartinen / lyhyt-test.php
Last active February 3, 2017 06:30
Lyhyt.fi esimerkki (test)
<?php
$ch = curl_init('https://lyhyt.fi/api/test');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// headers
$headers = [
'Authorization: Bearer APITOKEN',
'Accept: application/json'
];
@MarkoKaartinen
MarkoKaartinen / lyhyt-user.php
Last active February 3, 2017 06:30
Lyhyt.fi esimerkki (user)
<?php
$ch = curl_init('https://lyhyt.fi/api/user');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// headers
$headers = [
'Authorization: Bearer APITOKEN',
'Accept: application/json'
];
@MarkoKaartinen
MarkoKaartinen / lyhyt-shorten.php
Created February 3, 2017 06:31
Lyhyt.fi esimerkki (shorten)
<?php
$ch = curl_init('https://lyhyt.fi/api/shorten');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// headers
$headers = [
'Authorization: Bearer APITOKEN',
'Accept: application/json'
];
@MarkoKaartinen
MarkoKaartinen / lyhyt-info.php
Created February 3, 2017 06:39
Lyhyt.fi esimerkki (info)
<?php
$ch = curl_init('https://lyhyt.fi/api/info');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// headers
$headers = [
'Authorization: Bearer APITOKEN',
'Accept: application/json'
];
<?php
function custom_discourse_comment( $input ) {
ob_start();
?>
<div class="media">
<div class="media-left">
<a href="{comment_url}">
<img class="media-object" src="{avatar_url}" alt="{username}" style="width:64px; height:64px;">