Skip to content

Instantly share code, notes, and snippets.

server {
listen 80;
server_name example.com www.example.com;
root /var/www/example.com;
index index.php;
location / {
try_files $uri $uri/ =404;
}
@int32at
int32at / App.java
Last active August 29, 2015 14:25
sample random timer
public class App {
public static void main(String[] args) {
// create new timer
MyTimer timer = new MyTimer();
// add listener
timer.addListener(new MyTimer.IMyTimerEventListener() {
var isInstanceAvailable = function (webPartId, errorMessage) {
var status = checkConnection();
if (!status && $("#postError").length == 0) {
$('#' + webPartId + ' div[id$=divFeed]').html('');
$('#' + webPartId + ' div[id$=divFeedSettingsContainer]').remove();
var html = "<div id='postError'>" + errorMessage + "</div>";
$('#' + webPartId + ' div[id$=divFeed]').append(html);
}
}