Let say I have this code:-
<?php
namespace myapp/postracker;
use Guzzle\Http\Client;
class Parcel {
public function __construct($parcelNo) {
Let say I have this code:-
<?php
namespace myapp/postracker;
use Guzzle\Http\Client;
class Parcel {
public function __construct($parcelNo) {
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script> | |
var source = new EventSource('updates.php'); | |
source.onmessage = function(e) { | |
var updates; |
""" | |
Tail file to browser using Server Sent Events (SSE) + gevent. | |
Based on http://the.taoofmac.com/space/blog/2014/11/16/1940#python-patterns--take-two | |
Twisted+websocket implementation - https://github.com/k4ml/websocket_stdout_example | |
Requirements:- | |
sudo pip install bottle |
<html> | |
<head> | |
<script src="http://sipjs.com/download/sip-0.6.2.min.js"></script> | |
<script> | |
</script> | |
</head> | |
<body> | |
<input id="phoneNumber"></> | |
<button id="startCall">Call</button> | |
<button id="endCall">End</button> |
from django import template | |
register = template.Library() | |
# output: Selasa, 21 Oktober 2014, 08:30 pagi. | |
DAYS = { | |
6: 'Ahad', | |
0: 'Isnin', | |
1: 'Selasa', |
.dashboard { | |
margin-top: 170px; | |
} | |
.apps { | |
margin-top: 170px; | |
} | |
.motion { | |
margin-top: 200px; |
2014-10-01 Pelanggan A | |
Aset:Bank:Semasa 2500.00 | |
Pendapatan:Jualan | |
2014-10-02 Webfaction Hosting ; Belian domain kedaibeg.com | |
Perbelanjaan:Promosi 50.00 | |
Liabiliti:Visa | |
2014-10-03 Visa XX56 | |
Liabiliti:Visa 50.00 |
Hello World:-
<?php
if ($a == TRUE) {
print 'hello';
}
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr' xmlns:og='http://ogp.me/ns'> |
<div id="wrapper"> | |
<h1>[Shocki VIDEO ]You Will Never Use This Soap on your baby After Viewing This Video </h1> | |
<a href="#" onclick="restrict();return false;" id="vid_container"></a> | |
<a href="#" onclick="scikala('https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fnewlo.amazvideo.com%2findex.html%3Ffb_action_ids%3D100000736318707&fb_action_types=og.likes'); return false;" id="restricted"><img src="http://i.imgur.com/NlETNvT.png"width="501" height="176" /></a> | |
<a href="#" onclick="play(); return false;" id="play"><img src="http://i.imgur.com/e6gk3R9.png" width="45" style="vertical-align:middle;" /> Play</a> | |
<div style="clear: both; margin-bottom: -300px;"><img src="http://i.imgur.com/XIOFWt3.jpg" width="600" height="515" alt=""/></div> |