Skip to content

Instantly share code, notes, and snippets.

require 'socket'
@socket =IO.popen('nc pwn2.ddtek.biz 11511', 'w+')
@socket.print('MAZE4J002PLAY')
@socket.gets
@socket.gets
UP = 'n'
file_cache_path "/tmp/chef-solo"
cookbook_path "/tmp/chef-solo/cookbooks"
@zaach
zaach / gist:221544
Created October 29, 2009 15:58 — forked from teeler/gist:205407
(* a simple echo server in ocaml
* -----------------------------
* uses a high level networking function, similar to SocketServer
* in python, called 'establish_server', see here:
* http://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html#VALestablish_server
*)
(*
our echo function
in -> out -> unit
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Test parser from web</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="calc.js"></script>
<script>
$(function () {
$("button").click(function () {
var result = calc.parse($("input").val())
%%
spec
: prefix top_description_list EOF
;
prefix
: PREFIX
{print('prefix',yytext);}
|
jQuery.noConflict();
require("spec_helper.js");
require("../../public/javascripts/prototype.js", {onload: function() {
require("../../public/javascripts/application.js");
require("../../public/javascripts/rdm/time_block.js");
}});
describe 'TimeBlock'
before_each
class Card
ROYALS = [:jack, :queen, :king, :ace]
def initialize(value)
@value = if value.class == Symbol then
raise RuntimeError unless ROYALS.index(value) >= 0
ROYALS.index(value) + 11
else
val = value.to_i
raise RuntimeError unless val > 1 && val < 15
class Pastie
# Paste source code to pasite.org
#
# Required arguments
# source : the source code
#
# Optional arguments
# format : file format for syntax highlighting (defualt: txt)
# private : post a private pastie (default: false)

Semantic Versioning

Details: http://semver.org/, http://apr.apache.org/versioning.html

Versions are denoted using a standard triplet of integers: MAJOR.MINOR.PATCH. The basic intent is that MAJOR versions are incompatible, large-scale upgrades of the API. MINOR versions retain source and binary compatibility with older minor versions, and changes in the PATCH level are perfectly compatible, forwards and backwards.

Patch level changes could also be for correcting incorrect APIs. In this case, the previous patch release may be incompatible, but because of bugs.

Minor versions may introduce new features, but do not alter any of the previous API.

@zaach
zaach / workflow.md
Created January 26, 2010 21:10 — forked from gstark/workflow.md

Semantic Versioning

Details:

Versions are denoted using a standard triplet of integers: MAJOR.MINOR.PATCH. The basic intent is that MAJOR versions are incompatible, large-scale upgrades of the API. MINOR versions retain source and binary compatibility with older minor versions, and changes in the PATCH level are perfectly compatible, forwards and backwards.