Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
(ns port-scanner | |
(:import [java.net Socket InetSocketAddress])) | |
(defn port-open? [hostname port timeout] | |
(try | |
(with-open [sock (Socket.)] | |
(.connect sock (InetSocketAddress. hostname port) timeout) | |
port) | |
(catch Exception e false))) |
;; When executed, this file will run a basic web server | |
;; on http://localhost:8080. | |
(ns ring.example.params | |
(:use ring.middleware.params | |
ring.util.response | |
ring.adapter.jetty)) | |
(defn page [name] | |
(str "<html><body>" |
<?php | |
class AbstractLogger extends AbstractLoggerCore {} | |
class Address extends AddressCore {} | |
class AddressFormat extends AddressFormatCore {} | |
class AdminTab extends AdminTabCore {} | |
class Alias extends AliasCore {} | |
class Attachment extends AttachmentCore {} | |
class Attribute extends AttributeCore {} | |
class AttributeGroup extends AttributeGroupCore {} |
(defn uuid [] (str (java.util.UUID/randomUUID))) |
// https://gist.github.com/3069522 | |
;(function($, window, document, undefined) { | |
// Prepare our Variables | |
var History = window.History; | |
// Check to see if History.js is enabled for our Browser | |
if (!History.enabled) { | |
return false; | |
} |
<?php | |
// jQuery version of https://gist.github.com/3110728 | |
/* | |
-- the SQL database table | |
create table form_ajax ( | |
ID varchar(5) not null, | |
Name varchar(100), | |
Address varchar(100), |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
;;; php-doc.el --- doc block generator/extractor for php | |
;; Copyright (C) 2010, 2013 Stefan Siegl <stesie@brokenpipe.de> | |
;; Maintainer: Stefan Siegl <stesie@brokenpipe.de> | |
;; Author: Stefan Siegl <stesie@brokenpipe.de> | |
;; Keywords: php docblock | |
;; Created: 2010 | |
;; Modified: 2013-09-14 | |
;; X-URL: https://gist.github.com/stesie |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
'use strict'; | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var del = require('del'); | |
var uglify = require('gulp-uglify'); | |
var gulpif = require('gulp-if'); | |
var exec = require('child_process').exec; | |
var notify = require('gulp-notify'); |