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
// ==UserScript== | |
// @name Disable Reddit Lightbox | |
// @namespace http://naatan.com/ | |
// @version 0.1 | |
// @description Disable the damn lightbox on the reddit redesign | |
// @author Nathan Rijksen | |
// @match https://www.reddit.com/* | |
// @grant none | |
// ==/UserScript== |
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
translation.override | |
Current Value: { | |
"Projects" : "Tags", | |
"Project" : "Tag", | |
"Type a project name..." : "Type a tag name...", | |
"Create a New Project" : "Create a New Tag", | |
"Create New Project" : "Create New Tag", | |
"Create Project" : "Create Tag", | |
"Associate Projects" : "Add Tags", |
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
new function() | |
{ | |
/** | |
* Execute Macro | |
* | |
* @returns {void} | |
*/ | |
this.exec = 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
var tmp = require('tmp'); | |
var fs = require('fs'); | |
var exec = require("child_process").exec; | |
tmp.file({postfix: ".md"}, function(err, path, fd) { | |
fs.writeFile(path, "* One\n* Two", function(err) { | |
if(err) return; | |
exec('github-markup ' + path, function (err, stdout, stderr) { | |
console.log(stdout); | |
console.log(path); |
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
komodo.assertMacroVersion(3); | |
if (komodo.view) { komodo.view.setFocus() }; | |
// Get text to execute | |
var ke = komodo.editor; | |
if(!ke.selText) | |
{ | |
// Use all text in file | |
var text = ko.views.manager.currentView.scimoz.text.trim() | |
} | |
else |
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
api.macro.register({ | |
id: "executeAsPHP", | |
execute: function() { | |
var selection = api.editor.getSelectedContents() || api.editor.getEditorContents(); | |
var tempFile = api.files.writeTempFile(selection); | |
api.commands.executeAndOutput("php -d display_errors=true " + tempFile.path); | |
}, |
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() | |
{ | |
var selection = ko.views.manager.currentView.selection; | |
if (selection == "") return; | |
function convert() | |
{ | |
selection = selection.replace(/\<\%/g, '<%'); | |
selection = selection.replace(/\%\>/g, '%>'); |
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
// ==UserScript== | |
// @name YouTrack show agile estimation totals | |
// @namespace http:// | |
// @version 0.1 | |
// @match http://*.myjetbrains.com/*/agile/* | |
// ==/UserScript== | |
function run() { | |
$(".sb-column").each(function(index) |
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 | |
function lipsum($amount = 5, $punct = false) | |
{ | |
$words = ['lorem', 'ipsum','dolor','sit','amet,','consectetur','adipiscing','elit','praesent', | |
'iaculis','interdum','congue','cras','ac','dictum','nulla.','quisque','quis','neque', | |
'nibh','curabitur','consequat','scelerisque','magna,','in','lacinia','nibh', | |
'scelerisque','eget','in','sed','ante','sit','amet','sem','cursus','mollis', | |
'quisque','venenatis','velit','nec','felis','varius','eu','auctor','odio', | |
'scelerisque.','nullam','id','enim','leo','donec','eu','ipsum','non','lectus','dapibus']; |
NewerOlder