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 | |
/* | |
* Wise Timetable to vCalendar Converter | |
* @Author Marko Zabreznik | |
* @copyright Marko Zabreznik | |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | |
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | |
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, |
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
// SCSS for https://github.com/mbenford/ngTagsInput/ | |
// Marko Zabreznik 4.2.2014 | |
.ngTagsInput { | |
* { | |
@include box-sizing(border-box); | |
&:before, &:after { | |
@include box-sizing(border-box); | |
} |
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
/* | |
* angular-ubilabs-geocomplete | |
* (c) 2014 Marko Zabreznik http://zabreznik.net | |
* License: MIT | |
*/ | |
/* | |
* What is it: a simple factory that lazy loads google geo maps and ubilabs jquery.geocomplete.js | |
* | |
* You need: Angular, jQuery and Underscore |
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 a new token to track logged in users | |
express.logger.token('user', function(req, res){ | |
// req.user is the deault passport.js variable, log the user id | |
return req.user ? req.user._id : '-'; | |
}); | |
// use this function on Heroku to get the remote IP | |
express.logger.token('ip', function(req, res){ |
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
/* | |
Why include huge tooltip libraries when something like this does the job perfectly | |
*/ | |
app.directive('tooltip', [function () { | |
return { link: function (scope, element, attr) { | |
// use tag's title text for a popup | |
element | |
.addClass('tooltip-wrap') | |
.append(angular.element('<div class="tooltip-text">'+attr.title+'</div>')) | |
.attr('title', null); |
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
/*jslint node: true */ | |
'use strict'; | |
module.exports = function (grunt) { | |
/* | |
1. make package.json.js and export the json that will be saved as package.json | |
2. run grunt package.json, the new file will be written and you get a patch as well | |
*/ | |
grunt.registerTask('package.json', function () { |
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
form: [ | |
{ | |
"key": "wizzard", | |
"type": "strap-select" | |
}, | |
] |
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 | |
/* | |
Plugin Name: Disable Feed Comments | |
Description: Disable commenting, comment feeds | |
Author: Marko Zabreznik | |
Version: 0.1 | |
Author URI: http://zabreznik.net | |
*/ | |
// if a comments template is requested, quit |
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
Locale Release Pack Total Native speak. Total per NS | |
en 17037257 — 17037257 360 0.04732571389 | |
nb_NO 55975 101078 157053 5 0.03141060000 | |
nl_NL 444729 44564 489293 22 0.02224059091 | |
sv_SE 151115 9325 160440 9.2 0.01743913043 | |
fr_FR 1038957 237164 1276121 75 0.01701494667 | |
de_DE 1080555 415812 1496367 89 0.01681311236 | |
sk_SK 25968 52657 78625 5.2 0.01512019231 | |
fa_IR 829918 55124 885042 60 0.01475070000 | |
sl_SI 13247 22763 36010 2.5 0.01440400000 |
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
'use strict'; | |
/* | |
N-Gram-Based Text Categorisation | |
Implementation by [email protected] | |
28.3.2015 All rights reserved. | |
Based on the paper by: | |
William B. Cavnar and John M. Trenkle | |
Environmental Research Institute of Michigan |
OlderNewer