Skip to content

Instantly share code, notes, and snippets.

View arlando's full-sized avatar

Arlando Battle arlando

View GitHub Profile
@arlando
arlando / tradetech_imgmap
Created February 20, 2013 15:34
tradetech - imagemap
<div id="centerStage_map">
<iframe width="790" scrolling="no" height="600" frameborder="0" src="http://archive.wbresearch.com/tradetecheurope/imagemap/index.html"></iframe>
</div>
@arlando
arlando / breadcrumbs.php
Created February 24, 2013 19:37
breadcrumbs in php
<?php
/**
* [$baseurl description]
* holds the url for site...
* @var string
*/
$baseurl = "http://.../"
/**
@arlando
arlando / processing-iterator.pde
Created February 25, 2013 03:55
processing-iterator
/**
* A snippet for an iterator pattern...
*/
import
ArrayList < obj > objs;
void draw() {
Iterator < obj > objsIterator = objs.iterator();
while(objsIterator.hasNext()) {
obj = objsIterator.next()
@arlando
arlando / build_two.sh
Created February 28, 2013 03:14
Makes /main/foldersub/foldersub#.pde structure
#! /bin/bash
#This is a bash script used for creating a lot of folders to experiment in Processing!
#It asks for the input of the main folder... this folder will hold all of the Processing sub folders for example
#If mainfolder is called cupcake and you name the processing folders icings and you want three made
#the bash script will create:
# cupcake/icings0/icings0.pde
# cupcake/icings1/icings1.pde
# cupcake/icings2/icings2.pde
@arlando
arlando / feature-panel.html
Created March 5, 2013 14:35
feature panel code
<root><PageRedirect><RedirectUrl></RedirectUrl></PageRedirect><Titles><HtmlTitle></HtmlTitle></Titles><fp_image></fp_image><fp_flash></fp_flash><main_flash_xml></main_flash_xml><HtmlContent><HtmlContent><link rel="stylesheet" href="http://38.119.46.100/jqueryfeaturepanel/featurepanel.css" type="text/css"></link><!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>--><!--<script type="text/javascript" src="http://38.119.46.100/jqueryfeaturepanel/featurepanel.js"></script>-->
<style>
#featurePanel, #slider{
width:790px !important;
}
.slideIndex {
display:none;
}
</style><div id="featurePanel">
<div id="slider">
@arlando
arlando / iteratorpattern.prc
Created March 6, 2013 03:39
iterator pattern
import java.util.Iterator;
void draw(){
if(prevball != null){
//prevball.updateColor();
}
fill(cmaster.updateColor());
//.1 - green/blue
@arlando
arlando / modal-video-box.xml
Created March 25, 2013 14:04
modal-video-box
1.Place before closing body tag in home... could also place in feature panel AFTER you have declared everything else:
<!--<style>
#simplemodal-container a.modalCloseImg {
background:url(http://archive.wbresearch.com//luis/js/images/x.png) no-repeat; /* adjust url as required */
width:25px;
height:29px;
display:inline;
z-index:3200;
position:absolute;
@arlando
arlando / 4x4SpeakerGrid.xml
Created March 27, 2013 14:43
4x4 Speaker Grid
<style>
/*homepage speaker grid*/
.featuredspeakers
{
padding:0;
width:500px;
height:660px
}
.featuredspeakers li
@arlando
arlando / WordPress CSS Enqueue
Created April 14, 2013 18:27
WordPress CSS Enqueue
<?
/*loads Bootstrap CSS*/
add_action('wp_enqueue_scripts','load_bootstrap_css_files');
function load_bootstrap_css_files() {
wp_register_style( 'bootstrap-base', get_template_directory_uri() . '/style/bootstrap.min.css', array(), '2.3.1', all);
wp_register_style( 'bootstrap-responsive-min', get_template_directory_uri() . '/style/bootstrap-responsive.min.css', array(),'2.3.1', all);
wp_register_style( 'brown-academy-style', get_template_directory_uri() . '/style/banstyle.css', array(), '1.0.0', all );
wp_enqueue_style( 'bootstrap-base' );
wp_enqueue_style( 'bootstrap-responsive-min' );
@arlando
arlando / Table with COLLAPSED lINES
Created April 17, 2013 14:54
Table with Collasped Lines.CSS
/*Makes a table with connecting lines*/
.spexTable{
border-collapse: collapse;
border-spacing: 0;
border-color: gray;
}