Skip to content

Instantly share code, notes, and snippets.

View aggieben's full-sized avatar
🏠
Working from home

Ben Collins aggieben

🏠
Working from home
View GitHub Profile
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main( ) {
string s, sre;
regex re;
// apparently tried to call
step_iterator_adaptor(const boost::gil::memory_based_step_iterator<boost::gil::rgb8_pixel_t*> &,
boost::gil::memunit_step_fn<boost::gil::rgb8_pixel_t *>)
// candidates:
step_iterator_adaptor(const boost::gil::rgb8_pixel_t *&,
boost::gil::memunit_step_fn<boost::gil::rgb8_pixel_t *>)
step_iterator_adaptor(const boost::gil::detail::step_iterator_adaptor<boost::gil::memory_based_step_iterator<boost::gil::rgb8_pixel_t *>,
boost::gil::rgb8_pixel_t *,
gil::rgb8_view_t resample_image(gil::rgb8_view_t &orig_view)
{
if ((orig_view.width() != 480 && orig_view.height() != 320) ||
(orig_view.width() != 320 && orig_view.width() != 480))
{
int x_step = 1;
int y_step = 1;
if (orig_view.width() > orig_view.height())
{
x_step = orig_view.width() / meatloaf::configuration::NORMALIZED_DIMENSIONS.first;
gil::rgb8_view_t resample_image(gil::rgb8_view_t &orig_view)
{
if ((orig_view.width() != 480 && orig_view.height() != 320) ||
(orig_view.width() != 320 && orig_view.width() != 480))
{
int x_step = 1;
int y_step = 1;
if (orig_view.width() > orig_view.height())
{
x_step = orig_view.width() / configuration::NORMALIZED_DIMENSIONS.first;
def init():
pass
def set_options(opt):
import optparse
modes = ('debug', 'release', 'diagnostic')
bld_group = optparse.OptionGroup(opt.parser, "Build Options")
bld_group.add_option('-m', '--mode', choices=modes, type='choice', default='debug', action='store',
help='Build mode: can be one of {0} [default=debug]'.format(modes))
opt.add_option_group(bld_group)
ScriptLink.Register(Page, "jquery-1.3.2.js", false);
ScriptLink.Register(Page, "jquery-ui-1.7.2.custom.min.js", false);
ScriptLink.Register(Page, "jquery.timepickr.js", false);
ScriptLink.Register(Page, "jquery.dataTables.js", false);
string scriptBlock =
@"
$('#discrepancy-results').dataTable();
";
$().SPServices({
operation: "GetAllSubWebCollection",
completefunc: function(data, status) {
alert($("Web", data.responseXML).eq(0).attr("Url"));
}
});
# script for AJAX-enabling a SharePoint (MOSS 2007 / WSS 3.0) config
# Copyright © 2009 Benjamin Collins <ben.collins@acm.org>
#
# Compatible with .NET 3.5 AJAX support and AJAX Control Toolkit
#
# usage:
# enable-spajax <path to web.config>
#
function usage {
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<configSections>
<sectionGroup name="SharePoint">
<section name="SafeControls" type="Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<section name="RuntimeFilter" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartLimits" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartCache" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="WebPartWorkItem" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sect
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'', 'pub.vies.index'),
(r'^/$', 'pub.views.index'),
)