Skip to content

Instantly share code, notes, and snippets.

View sarahhodne's full-sized avatar
🏳️‍⚧️

Sarah Hodne sarahhodne

🏳️‍⚧️
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY chap1 SYSTEM "chapters/01-history.xml">
<!ENTITY chap2 SYSTEM "chapters/02-signing-up.xml">
]>
<book version="4.5" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
desc "Push the files to the server"
task :push do
project = "cluenet-the-definitive-guide"
%w(pdf html epub).each do |ext|
sh "make #{ext}"
sh "scp #{project}.#{ext} sine.cluenet.org:public_html/cluenetbook/#{project}.#{ext}"
end
end
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<chapter>
<chapterinfo>
<author>
<personname><firstname>Nathan</firstname><surname>Zadoks</surname></personname>
</author>
</chapterinfo>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
<?php
class Login extends Controller {
function Login() {
parent::Controller();
}
function index() {
$authenticated = false;
if ($this->input->server("PHP_AUTH_USER")) {
class Array
def strided_split(size)
next_start = 0
ary = []
until next_start >= self.size
ary << self[next_start,size]
next_start += size
end
ary
end
cmake_minimum_required(VERSION 2.6)
ADD_EXECUTABLE(helloworld.wt
helloworld.C
)
# For FastCGI deployment:
TARGET_LINK_LIBRARIES(helloworld.wt
wtfcgi wt
)
import collections
class PluginManager:
def __init__(self):
self.modules = {}
self.plugins = {}
self.callbacks = {}
def __getitem__(self, name):
return self.plugins[name.lower()]
#include <WApplication>
#include <WBreak>
#include <WContainerWidget>
#include <WLineEdit>
#include <WPushButton>
#include <WText>
using namespace Wt;
/*
dvyjones@hummingbird:~$ traceroute 72.249.94.106
traceroute to 72.249.94.106 (72.249.94.106), 30 hops max, 60 byte packets
1 10.251.17.170 (10.251.17.170) 115.788 ms 115.782 ms 125.773 ms
2 10.251.17.169 (10.251.17.169) 127.059 ms 126.994 ms 145.433 ms
3 10.251.17.180 (10.251.17.180) 155.014 ms 165.225 ms 165.521 ms
4 10.251.17.180 (10.251.17.180) 93.097 ms 94.044 ms 122.512 ms
5 217.148.150.2 (217.148.150.2) 112.607 ms 113.711 ms 122.693 ms
6 * * *
7 * * *
8 * * *