This file contains hidden or 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
doctype html | |
/[if IE 8] | |
| <html class="no-js lt-ie9"> | |
/[if IE 9] | |
| <html class="ie9"> | |
html.no-js | |
/! <![endif] | |
head | |
meta charset="utf-8" |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'FasterCSV' | |
require 'httparty' | |
require 'json' | |
class GitHub | |
include HTTParty | |
base_uri 'https://api.github.com' |
This file contains hidden or 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 | |
/** This version works on 2.2.x versions of OJS. | |
* The ways interests are stored has changed a lot so tweaks will need to be made depending on the version of OJS | |
The following method needs to be added to lib/pkp/classes/user/InterestDAO.inc.php | |
function getInterestObjects($userId) { | |
$interests = $this->build($userId); | |
$interestEntryDao =& DAORegistry::getDAO('InterestEntryDAO'); |
This file contains hidden or 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
{ | |
"firstName": "Reginald", | |
"lastName": "Fake", | |
"gender": "Male", | |
"dob":"1983-01-01", | |
"email":"[email protected]", | |
"address": { | |
"streetAddress": "21 Fake Street", | |
"city": "New York City", | |
"state": "NY", |
This file contains hidden or 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 | |
/* | |
* Fetch open bugs from a bugzilla database and insert them into github bugs | |
* TODO: Format in a way Github likes (see http://developer.github.com/v3/issues/) | |
* TODO: Feed into import script (see https://gist.github.com/1816061) | |
* NOTE: Need to lookup github usernames by email. Not sure if comments will be accepted if the user is not authenticated | |
* Written by Matt Crider (github: mcrider) | |
*/ |
This file contains hidden or 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 | |
/* PHP script to bulk import issues in json format from a file to a GitHub repository | |
* | |
* The json in the uploaded file should contain an array of issues at the top level. | |
* Fields in the json mapped to the issue title and body (nothing else is supported) | |
* are specified in the submission form. | |
* | |
* Depends on the php-github-api from here: https://github.com/ornicar/php-github-api | |
*/ |
This file contains hidden or 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
# This file contains a list, one per line, of regular expressions to be applied | |
# to browser user agents to determine whether or not the browser is a "bot" or | |
# not (i.e. should not be counted in article view counts). If any regexp | |
# matches, the browser will be considered a bot. | |
/008/ | |
/ABACHOBot/ | |
/Accoona\-AI\-Agent/ | |
/AddSugarSpiderBot/ | |
/AnyApexBot/ |
This file contains hidden or 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 | |
/** | |
* @file plugins/generic/oak/OAKPlugin.inc.php | |
* | |
* Copyright (c) 2003-2010 John Willinsky | |
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. | |
* | |
* @class OAK | |
* @ingroup plugins_generic_oak |
This file contains hidden or 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
{** | |
* templates/workflow/header.tpl | |
* | |
* Copyright (c) 2003-2011 John Willinsky | |
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. | |
* | |
* Header that contains details about the submission | |
*} | |
<div class="pkp_submissionHeader"> |
This file contains hidden or 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
<!-- | |
* | |
* TABLE notification_mail_list | |
* | |
--> | |
<table name="notification_mail_list"> | |
<field name="subscription_id" type="I8"> | |
<KEY /> | |
<AUTOINCREMENT/> | |
</field> |