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
ALTER TABLE etask_tasks ADD `mkdate` INT(11) NOT NULL AFTER `created`, ADD `chdate` INT(11) NOT NULL AFTER `changed`; | |
UPDATE etask_tasks SET mkdate = UNIX_TIMESTAMP(created), chdate = UNIX_TIMESTAMP(changed); | |
ALTER TABLE etask_tasks DROP `created`, DROP `changed`; | |
ALTER TABLE etask_tests ADD `mkdate` INT(11) NOT NULL AFTER `created`, ADD `chdate` INT(11) NOT NULL AFTER `changed`; | |
UPDATE etask_tests SET mkdate = UNIX_TIMESTAMP(created), chdate = UNIX_TIMESTAMP(changed); | |
ALTER TABLE etask_tests DROP `created`, DROP `changed`; | |
ALTER TABLE etask_responses ADD `mkdate` INT(11) NOT NULL AFTER `created`, ADD `chdate` INT(11) NOT NULL AFTER `changed`; | |
UPDATE etask_responses SET mkdate = UNIX_TIMESTAMP(created), chdate = UNIX_TIMESTAMP(changed); |
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
import Backbone from 'backbone' | |
import _ from 'underscore' | |
import Promise from 'bluebird' | |
const showDialog = function (backboneView, dialogOptions) { | |
return new Promise(function (resolve, reject) { | |
const hygenicDialogClass = _.uniqueId('cliqr--dialog-') |
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
import Backbone from 'backbone' | |
import _ from 'underscore' | |
import Promise from 'bluebird' | |
const showDialog = function (backboneView, dialogOptions) { | |
return new Promise(function (resolve, reject) { | |
const hygenicDialogClass = _.uniqueId('cliqr--dialog-') |
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
<? | |
protected function start_session($user_id) | |
{ | |
global $perm, $user, $auth, $sess, $forced_language, $_language; | |
$user = new Seminar_User(); | |
$user->start($user_id); |
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
MYSQL="mysql -h HOST -u USERNAME -pPASSWORD -D DB_NAME" | |
$MYSQL -BNe "show tables" | awk '{print "set foreign_key_checks=0; drop table `" $1 "`;"}' | $MYSQL | |
unset MYSQL |
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 words($string) | |
{ | |
return preg_split('/ /', $string, -1, PREG_SPLIT_NO_EMPTY); | |
} | |
function halt(/* [status], [headers], [body] */) | |
{ | |
$args = func_get_args(); |
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
<? | |
class RouteMap { | |
// [...] | |
// TODO (mlunzena): Implement these | |
// Set the Content-Type of the response body given a media type or | |
// file extension. |
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 | |
/** | |
* StudipDispatcher.php - create the default Trails dispatcher | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License as | |
* published by the Free Software Foundation; either version 2 of | |
* the License, or (at your option) any later version. | |
* |
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
// Generated by CoffeeScript 1.5.0 | |
(function() { | |
var $, dialog, dialog_template, getCid, getWikiPages, intermap, openLinkDialog, url; | |
$ = jQuery; | |
dialog_template = _.template("<div title='Stud.IP-Link einfügen'>\n <select>\n <% _.each(keywords, function(keyword) { %>\n <option><%= keyword %></option> <% }); %>\n </select>\n <button class=submit>Einfügen</button>\n</div>"); | |
url = function(cid) { | |
return STUDIP.ABSOLUTE_URI_STUDIP + ("plugins.php/restipplugin/api/courses/" + cid + "/wiki"); |
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 UserRoute implements APIRoute | |
{ | |
/** | |
* | |
**/ |
NewerOlder