Skip to content

Instantly share code, notes, and snippets.

@S204STi
S204STi / generic settings for sts.ini
Created February 2, 2018 22:52
generic settings for sts.ini
#computer is a windows laptop using an Intel i7-4720HQ (8 threads) with 16384MB DDR3 on Windows 10 install on a SATA SSD
-startup
#this is going to need to be changed based on your configuration
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
#this is going to need to be changed based on your configuration
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
-product
com.springsource.sts.ide
@S204STi
S204STi / gist:221c7b72641b1ef4ee5cd796fd4aed74
Created May 22, 2016 21:04 — forked from loganking/gist:4be8161ea628fba57437f490c22e2b39
AJAX wrapper for XMLHttpRequest supporting GET and POST
/*
data (optional) - a JSON string to send with the request
*/
function ajax(method, url, handler, data) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function(){
if (this.readyState === 4) {
if (this.status === 200) {
handler(null, JSON.parse(this.responseText));