The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: October 8th 2015
- Original post
| <?php | |
| // /app/Plugin/Usermgmt/Controller/ServicesController.php | |
| /* | |
| This file is part of UserMgmt. | |
| Author: Chetan Varshney (http://ektasoftwares.com) | |
| UserMgmt is free software: you can redistribute it and/or modify |
| ErrorDocument 404 /owncloud/core/templates/404.php | |
| <IfModule mod_php5.c> | |
| php_value upload_max_filesize 512M | |
| php_value post_max_size 512M | |
| php_value memory_limit 128M | |
| SetEnv htaccessWorking true | |
| </IfModule> | |
| Options -Indexes |
| // Bits and pieces *cough* stolen *cough* from | |
| // Micheil Smith's node-websocket-server | |
| // <http://github.com/miksago/node-websocket-server> | |
| // Therefore, I don't really think that I should claim any copyright for | |
| // this piece of "minified" code. | |
| var http = require('http'); | |
| var crypto = require('crypto'); |
Install webpack
npm install webpack -g
Build
webpack ./main.js bundle.js
| var app = { | |
| initialize: function() { | |
| document.addEventListener('deviceready', this.updateEuroValue, false); | |
| }, | |
| updateEuroValue: function() { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.onreadystatechange = function() { | |
| var euroPrice, |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"LocalPage" ofType:@"html" inDirectory:nil]; | |
| NSString* htmlString = [NSString stringWithContentsOfFile:htmlFile encoding:NSUTF8StringEncoding error:nil]; | |
| //Append javascript | |
| NSString *script = @"<script>alert(\"This is an alert!!\");</script>"; | |
| htmlString = [htmlString stringByAppendingString:script]; | |
| [self.webView loadHTMLString:htmlString baseURL:nil]; |
| #!/usr/bin/env bash | |
| siege -c 10 -b -t 30s http://localhost:9393 |
| package main | |
| import ( | |
| "encoding/json" | |
| "encoding/xml" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" |