This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go through each link | |
$('a.resolved').each(function() { | |
//request the page being linked to | |
$.get($(this).attr('href'), function(data) { | |
//set the field we want and find the form | |
var $form = $(data).find('#comment_status_id_4').trigger('click').closest('form'); | |
//submit the form | |
$.post($form.prop('action'), $form.serialize()); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash script for installing SS into a Vagrant machine | |
# using windows 8 | |
# | |
# Author Dan Hensby <https://github.com/dhensby> | |
# clone the git repo for the Vagrant skeleton | |
git clone https://github.com/BetterBrief/vagrant-skeleton.git . | |
# Remove the .git folder, we don't really want that | |
del .git -R -Force # this doesn't work so well on win 8 as it prompts | |
# Create the webroot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Refreshes the graphs at their interval | |
*/ | |
//generic function for generating a graph by parent ID | |
function genNewGraphByID(id) { | |
$(id).find('div.graph').each(function() { | |
$(this).children().remove(); | |
drawGraph(this); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Assuming that we have a CSV like so: | |
* old/url, new/url | |
*/ | |
$csv = '/path/to/csv/file.csv'; | |
$hasHeaderRow = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($, w, undefined) { | |
var $diffs = $('.diff-view .js-details-container'); | |
var $comments = $('.diff-view .js-comment'); | |
var $w = $(w); | |
var $a = $('<a/>', { | |
'class': 'js-next-diff', | |
'href': '#' | |
}).css({ | |
'position': 'fixed', | |
'font-size': 'large', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARNING: Manifest not flushed. Add flush=1 as an argument to discover new classes or files. | |
PHPUnit 3.7.37 by Sebastian Bergmann. | |
Configuration read from /var/www/test/phpunit.xml.dist | |
..I.EE..EEE.EEEE........E....EE....E.....E.EE.....EE..EEEEEE. 61 / 1603 ( 3%) | |
....................EE.....EE..E............................. 122 / 1603 ( 7%) | |
.......................................................EE.... 183 / 1603 ( 11%) | |
...............EE.EEE.E...............E...................... 244 / 1603 ( 15%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create my install dirs | |
mkdir -p ~/osb-installer/src | |
cd ~/osb-installer | |
#install required software | |
yum install -y vim wget unzip git java-1.6.0-openjdk-devel mariadb-server | |
#Start mysql on boot and now | |
systemctl enable mariadb.service | |
systemctl start mariadb.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Usage CSVFormatter::format_list(Member::get(), array('CSVColumnTitle' => 'Database Field'), (bool)$headerRow) | |
*/ | |
class CSVFormatter { | |
private static $value_quoter = '"'; | |
private static $column_separator = ','; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ActivityAggregatorItem { | |
/** @var callable */ | |
private $listFunction; | |
/** @var int */ | |
private $limit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CRMAdmin extends ModelAdmin { | |
private static $url_segment = "crm"; | |
private static $menu_title = "CRM"; | |
private static $managed_models = array( | |
"Client", | |
"Contact", |
OlderNewer