Skip to content

Instantly share code, notes, and snippets.

@tuolumne
tuolumne / dabblet.css
Created March 28, 2012 17:05
Table overflow
/**
* The first commented line is your dabblet’s title
*/
#container { width:960px;
background-color:red;
}
@tuolumne
tuolumne / dabblet.css
Created March 28, 2012 17:15
Document Container *
/** Document Container **/
#idContain {
width:80%;
margin-left:10%;
margin-right:10%;
background: #dacccc;
min-height: 100%;
}
.span-12{
<?php
#
# Print All For Invoices
#
include '../config.php';
include '../libs/database.php';
include '../libs/stdlib.php';
if(isset($_REQUEST['file'])) {
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
</lst>
</requestHandler>
@tuolumne
tuolumne / schema.xml
Last active December 23, 2015 13:39
schema.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@tuolumne
tuolumne / data-config.xml
Last active December 23, 2015 19:59
Added Tika integration - Still need to make the file path dynamic.
<dataConfig>
<dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/tobacco" user="tobacco" password="tobacco"/>
<dataSource type="BinFileDataSource" name="bin-file-ds"/>
<script><![CDATA[
function addfield(row){
var patt=/(\d\d\d\d)([0][0-9]|[1][0-2])(\d\d)/i;
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.2' )
import groovyx.net.http.HTTPBuilder
import static groovyx.net.http.Method.GET
import static groovyx.net.http.ContentType.TEXT
// initialze a new builder and give a default URL
def http = new HTTPBuilder( 'http://www.google.com/search' )
@tuolumne
tuolumne / dabblet.css
Last active August 29, 2015 14:07
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#d1{
background: blue;
width:100px;
height:300px;
}
@tuolumne
tuolumne / dabblet.css
Last active August 29, 2015 14:08
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#d1{
background: blue;
width:400px;
height:200px;
position:relative;
left:20px;
top:20px
@tuolumne
tuolumne / dabblet.css
Created October 30, 2014 18:54
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#d0{
background: blue;
oppacity:12%;
}
#d1{
background: blue;