Skip to content

Instantly share code, notes, and snippets.

Darren Waddell fakedarren

Block or report user

Report or block fakedarren

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fakedarren
fakedarren / moofx.js
Created Sep 2, 2012
MooFx - to be used with other frameworks
View moofx.js
(function(modules) {
var cache = {}, require = function(id) {
var module = cache[id];
if (!module) {
module = cache[id] = {
exports: {}
};
var exports = module.exports;
modules[id].call(exports, require, module, exports, window);
}
@fakedarren
fakedarren / jira-sucks.css
Created Apr 9, 2012
Make Jira less sucky
View jira-sucks.css
a { color: #325c99 !important; }
table.header { display: none !important; }
table.menu td {
background: #FFF !important;
height: 30px !important;
}
body > table > tbody > tr > td:nth-child(1) {
background: #fff !important;
}
body > table [bgcolor=f0f0f0] table[width="200"] > tbody > tr > td > table[width="100%"]:nth-child(1) {
@fakedarren
fakedarren / shockingly-bad-sproc.sql
Created Sep 4, 2011
An appallingly bad stored procedure I was given to 'work on' at work
View shockingly-bad-sproc.sql
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
--[CT_UGC_MyLibrary] 2,'',''
ALTER PROCEDURE [dbo].[CT_UGC_MyLibrary]
@subscribercode int,
View TTG.js
Abacus.InitPopup = function(context){
if (Abacus.BeforeInitPopup){
Abacus.BeforeInitPopup(context);
}
context.getElements('form').addEvent('submit', function(evt){
if (!this.hasClass('no-ajax')) evt.stop();
});
context.getElements('button').addEvent('click', function(evt){
var parentform = $(this).getParent('form');
if (parentform){
View specs.txt
Intel Core 2 Quad 2.66 GHz Processor
Geforce FX9800GTX
4Gb DDR2 1066hz RAM
2x 500gb HDD
32x DVD writer
1x Sony 21" monitor (an awesome one)
Thermaltake Case with all the trimmings
Onboard LAN
It can run Crysis. Well.
@fakedarren
fakedarren / epic.sql
Created Aug 9, 2011
Epic XML SQL Query
View epic.sql
DECLARE @MyXml XML
SET @MyXml = CAST('
<content>
<item>
<id>1</id>
<path>foo</path>
</item>
<item>
<id>2</id>
View gist:1085738
<!DOCTYPE html>
<?php
error_reporting(0);
require('libs/markdown.php');
require('libs/geshi/geshi.php');
require('libs/yaml.php');
require('libs/docs.php');
View crap.js
function wireUpEditableHeader() {
if ($('renewalcampaigneditableheader')) {
$('renewalcampaigneditableheader').addEvent('click', function (evt) {
evt.stop();
$("renewalcampaigneditableheader").addClass("hide");
$('renewaleditformcontainer').removeClass("hide");
});
}
View example.cs
public class Foo
{
public Foo()
{
}
string moderatorEmail
{
get
{
View Date picker styles?
::input[type=date] {
border: 1px solid red;
}
::input[type=date]:day {
font: bold 30px "Comic Sans";
background: pink;
}
You can’t perform that action at this time.