Skip to content

Instantly share code, notes, and snippets.

View davehimself's full-sized avatar

David Heath davehimself

View GitHub Profile
package org.davehimself;
public class App
{
public static void main( String[] args )
{
System.out.println("foo");
}
}
#!/usr/bin/env ruby
def main
lower_bound = 1
upper_bound = 100
rand = Random.new
current = rand.rand(lower_bound..upper_bound)
previous_choices = []
if ([elementName isEqualToString:@"campaign"]) {
[viewController.campaigns addObject:currentCampaign];
}
#import "CampaignList.h"
#import "VertsterClient.h"
@implementation CampaignList
@synthesize campaigns;
- (id)init {
if (self = [super init]) {
(function($) {
var $container = null;
var $previous = null;
var config = {}
$.fn.AddressSlider = function(options) {
settings = {
pidData: pidData,
showCallback: null,
var Foo = new Class({
someMethod: function() {}
});
var Bar = new Class({
Implements: Foo,
someOtherMethod: function() {}
});
if (typeof(Vswap.recipe.name) != "undefined") {
s.eVar12 = Vswap.recipe.name.replace(' ', '_');
}
<script type="text/javascript">
var url = 'http://xxx.net/handler.ashx?ci=7794&pi=home';
var tt= new Date().getTime();
document.write('<sc'+'ript type="text/javascript" ');
document.write('src="'+url+'&t'+tt+'='+tt+'">');
document.write('</sc'+'ript>');
</script>
warning: Parameter 1 to admin_menu_admin_menu() expected to be a reference, value given in /mnt/hgfs/projects/dropvine/includes/module.inc on line 483.
warning: Parameter 2 to admin_system_info_alter() expected to be a reference, value given in /mnt/hgfs/projects/dropvine/includes/common.inc on line 2839.