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 | |
$logfiles = [ | |
"/home/user/logs/php.log" | |
]; | |
$apacheLogFiles = [ | |
"/var/log/apache2/error.log" | |
]; | |
// after this many lines in the log file a warning will be included in the e-mail that the log file is getting long | |
$lengthWarning = 100; |
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
<html> | |
<head> | |
<script src="pingpoliCandlestickChart.js"></script> | |
</head> | |
<body> | |
<canvas width="1280" height="720" id="testcanvas"></canvas> | |
<script> | |
function plot() | |
{ | |
var xmlhttp = new XMLHttpRequest(); |
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
/* | |
A single-file JavaScript class to draw candlestick charts. | |
Use at your own risk. | |
https://twitter.com/pingpoli | |
https://pingpoli.de | |
*/ | |
function pingpoliCandlestick( timestamp , open , close , high , low ) | |
{ | |
this.timestamp = parseInt(timestamp); | |
this.open = parseFloat(open); |
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
#include <iostream> | |
#include "../../SRC/lstd/filesystemutil.hpp" | |
#include "../../SRC/lstd/Timer.hpp" | |
class Node | |
{ | |
public: | |
Node* parent; | |
std::string value; | |
std::vector< Node* > children; |
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 | |
// based on https://stackoverflow.com/questions/12684765/twitter-api-returns-error-215-bad-authentication-data | |
require_once( "mysql_config.php" ); | |
define( 'ACCESS_TOKEN' , 'YOUR_ACCESS_TOKEN' ); | |
define( 'ACCESS_TOKEN_SECRET' , 'YOUR_ACCESS_TOKEN_SECRET' ); | |
define( 'CONSUMER_KEY' , 'YOUR_CONSUMER_KEY' ); | |
define( 'CONSUMER_KEY_SECRET' , 'YOUR_CONSUMER_KEY_SECRET' ); | |
// get the follower ids |
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 | |
// based on https://stackoverflow.com/questions/12684765/twitter-api-returns-error-215-bad-authentication-data | |
define( 'ACCESS_TOKEN' , 'YOUR_ACCESS_TOKEN' ); | |
define( 'ACCESS_TOKEN_SECRET' , 'YOUR_ACCESS_TOKEN_SECRET' ); | |
define( 'CONSUMER_KEY' , 'YOUR_CONSUMER_KEY' ); | |
define( 'CONSUMER_KEY_SECRET' , 'YOUR_CONSUMER_KEY_SECRET' ); | |
// get the twitter ids of all followers of your account | |
$query = array( | |
'screen_name' => 'YOUR_TWITTER_USERNAME', |
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
// by default, personalized ads are turned off | |
var CCM_showPersonalizedAds = false; | |
// increase this number when your cookie policy has changed, this will show the popup to all users again | |
var CCM_versionNumber = 0; | |
var CCM_popup; | |
// helper function to get the value of a cookie | |
function CCM_getCookie( name ) |
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
// by default, personalized ads are turned off | |
var CCM_showPersonalizedAds = false; | |
// increase this number when your cookie policy has changed, this will show the popup to all users again | |
var CCM_versionNumber = 0; | |
function CCM_getCookieConsent( forceShow ) | |
{ | |
var consent = CCM_getCookie( "ccm_accepted_v"+CCM_versionNumber ); | |
if ( consent != "yes" || forceShow ) | |
{ |
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
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<script> | |
if ( !CCM_showPersonalizedAds ) (adsbygoogle=window.adsbygoogle||[]).requestNonPersonalizedAds=1; | |
// only show ads after you requested non personalized ads | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
</script> |
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
<script src="js/CookieConsentManager.js"></script> | |
<script>CCM_getCookieConsent();</script> |
NewerOlder