Skip to content

Instantly share code, notes, and snippets.

View Jquery
$(document).ready(function() {
$.ajax({
url: '${urlstring}',
success: function(data) {
document.write(data);
},
error: function(xhr, status, error) {
document.write(error + ": " + JSON.parse(xhr.responseText));
}
});
View scala
<#if filename>
scala_.txt
<#elseif title>
Scala
<#elseif logo>
//dmnv44fd3imdv.cloudfront.net/www.pushmon.com/img/code/java.gif
<#elseif code>
package com.teamextension.ping;
import java.net.URL
View node
<#if filename>
node_.txt
<#elseif title>
Node
<#elseif logo>
@pushmon
pushmon / c
Created Apr 2, 2014
C Language
View c
<#if filename>
c_.txt
<#elseif title>
C
<#elseif logo>
//dmnv44fd3imdv.cloudfront.net/www.pushmon.com/img/code/java.gif
<#elseif code>
#include <stdio.h>
#include <curl.h>
View pushmon.ps1
$urlString = "http://pshmn.com/eaFnY"
(new-object System.Net.WebClient).DownloadString($urlString)
View pushmon.sh
#!/bin/bash
set -e # if command fails, exit and do not ping
urlstring="http://pshmn.com/eaFnY"
curl -L "${urlstring}"
# if you prefer wget over curl, use
# wget -O - "${urlstring}"
View gist:1886456
<script type='text/javascript' src="http://pshmn.com/eaFnY?type=js"></script>
View gist:1886446
require 'net/http'
require 'uri'
urlString = 'http://pshmn.com/eaFnY'
begin
Net::HTTP.get(URI.parse(urlString))
rescue
# log error
end
View gist:1886432
On Error Resume Next
Dim http, urlString
urlString = "http://pshmn.com/eaFnY"
Set http = CreateObject("Msxml2.ServerXMLHTTP")
http.Open "GET", urlString
http.Send
Set http = Nothing
View gist:1886418
<project name="urlping" default="urlping" basedir=".">
<target name="urlping">
<get src="http://pshmn.com/eaFnY" dest="./~pushmon.tmp" />
</target>
</project>
You can’t perform that action at this time.