start new:
tmux
start new with session name:
tmux new -s myname
| #include <QDebug> | |
| #include <QWidget> | |
| #include <QNetworkReply> | |
| #include <QSslConfiguration> | |
| App::App(QWidget *parent) : | |
| QWidget(parent), | |
| ui(new Ui::App) | |
| { | |
| ui->setupUi(this); |
| static QApplication* app; | |
| static int argc = 0; | |
| BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID lpReserved) | |
| { | |
| switch (reason) | |
| { | |
| case DLL_PROCESS_ATTACH: | |
| { | |
| app = new QApplication(argc, NULL); |
| { | |
| QEventLoop loop; | |
| connect(reply, SIGNAL(finished()), &loop, SLOT(quit())); | |
| loop.exec(); | |
| } |
| /** | |
| * event widget | |
| * url: http://dribbble.com/shots/713807-Extended | |
| */ | |
| @import url(http://fonts.googleapis.com/css?family=Open+Sans:300); | |
| * { | |
| box-sizing: border-box; | |
| } |
| #!/usr/bin/env python2.5 | |
| import sys | |
| import getpass | |
| import xmlrpclib | |
| server = xmlrpclib.Server('https://api.webfaction.com/') | |
| username = raw_input("Username : ") | |
| password = getpass.getpass("Password : ") |
| # Your awesome Koding App Code | |
| class MainView extends JView | |
| constructor:-> | |
| super | |
| @ball = new KDView | |
| cssClass : 'ball' |
| class Timer extends JView | |
| constructor:-> | |
| super cssClass: 'timer' | |
| @setData secondsElapsed : 0 | |
| viewAppended:-> | |
| super | |
| setInterval (@bound 'tick'), 1000 |
| class Markdown extends JView | |
| constructor:-> | |
| super cssClass : 'markdown', | |
| markdown : "Type some *markdown* here!" | |
| @textInput = new KDInputView | |
| bind : "keyup" | |
| type : "textarea" | |
| defaultValue : @data.markdown |
| var http = require('http'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World\n'); | |
| }).listen(3000, '0.0.0.0'); | |
| console.log('Server running at 3000'); |