Frontend Development
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
!9:: | |
Send {U+201E} | |
return | |
!0:: | |
Send {U+201C} | |
return | |
!-:: | |
Send {U+2013} |
// JS Module Pattern: | |
// http://j.mp/module-pattern | |
// Redefine: $, window, document, undefined. | |
var APP = (function($, window, document, undefined) { | |
// Automatically calls all functions in APP.init | |
$(document).ready(function() { | |
APP.go(); | |
}); |
package com.zygimantus; | |
import java.io.IOException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
@WebServlet(urlPatterns = {""}) | |
public class MainServlet extends HttpServlet { |
<?xml version="1.0" encoding="UTF-8" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" encoding="utf-8"/> | |
<xsl:template match="/*[node()]"> | |
<xsl:text>{</xsl:text> | |
<xsl:apply-templates select="." mode="detect" /> | |
<xsl:text>}</xsl:text> | |
</xsl:template> | |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/bin/bash | |
#------------------------------------------------------------------------------- | |
#Created by helmuthdu mailto: helmuthdu[at]gmail[dot]com | |
#Inspired by Andreas Freitag, aka nexxx script | |
#------------------------------------------------------------------------------- | |
#This program is free software: you can redistribute it and/or modify | |
#it under the terms of the GNU General Public License as published by | |
#the Free Software Foundation, either version 3 of the License, or | |
#(at your option) any later version. | |
# |
var _ = require("underscore"); | |
var gimage = require('google-image-chart').charts; | |
var timeseries = function(data, options) { | |
/* | |
Data Format: | |
[ | |
[Date Object, value], | |
[Date Object, value] | |
] |
// map for components | |
Map<Class, String> map = new HashMap<Class, String>() { | |
private static final long serialVersionUID = 1L; | |
{ | |
put(Controller.class, "controller"); | |
put(Service.class, "service"); | |
} | |
}; |
public final int executeSqlFromResource(String fileName) { | |
try { | |
BufferedReader in = new BufferedReader( | |
new InputStreamReader( | |
getClass() | |
.getClassLoader() | |
.getResourceAsStream(fileName))); | |
LineNumberReader fileReader = new LineNumberReader(in); |
<api xmlns="http://ws.apache.org/ns/synapse" name="MapService" context="/MapService"> | |
<resource methods="GET" uri-template="/gettemperature?x={lon}&y={lat}"> | |
<inSequence> | |
<call> | |
<endpoint> | |
<http method="get" uri-template="http://localhost:9765/SimpleMap_1.0.0/services/map/getcity?x={uri.var.lon}&y={uri.var.lat}"></http> | |
</endpoint> | |
</call> | |
<property name="uri.var.city" expression="json-eval($.city)"></property> | |
<log level="full"> |