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 script requires UltraEdit v13.10 or UEStudio v6.30 or any later. | |
//Get user input | |
var findStr; | |
var x = 0; | |
var lineNum; | |
var found; | |
//Clear the output window, make it visible and disable status information. | |
UltraEdit.outputWindow.showStatus=false; | |
UltraEdit.outputWindow.clear(); | |
if (UltraEdit.outputWindow.visible == false) { |
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
function recall(num) { | |
UltraEdit.activeDocument.write(num + " "); | |
} | |
function num() { | |
var i = 0, j = 1, n = 0; | |
while (n < 10) { | |
recall(i); | |
var t = i; | |
i = j; |
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
data:text/html,%20<html%20contenteditable> |
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
(function (window, document) { | |
'use strict'; | |
var $ = window.$; | |
// ================================================================== | |
window.process = function () { | |
console.log('process'); |
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
$('*').filter(function () { return $(this).css('font-style') == 'italic' }) |
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
function () { | |
window.location = 'mailto:?body=' + window.location.href; | |
} |
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
security: | |
authorization: 'enabled' | |
systemLog: | |
destination: file | |
path: /data/db/mongo.log | |
storage: | |
dbPath: /data/db | |
auditLog: | |
destination: file | |
format: JSON |
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
mongod --dbpath . --auth --setParameter enableLocalhostAuthBypass=false |
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
// source: https://blog.heroku.com/kafka-data-pipelines-frp-node?c=7013A000000tyBBQAY&utm_campaign=Newsletter_December_2016&utm_medium=email&utm_source=newsletter&utm_content=blog&utm_term=kafka-data-pipelines-frp-node | |
function wordFreq(accumulator, string) { | |
return _.replace(string, /[\.!\?"'#,\(\):;-]/g, '') //remove special characters | |
.split(/\s/) | |
.map(word => word.toLowerCase()) | |
.filter(word => ( !_.includes(stopWords, word) )) //dump words in stop list | |
.filter(word => ( word.match(/.{2,}/) )) //dump single char words | |
.filter(word => ( !word.match(/\d+/) )) //dump all numeric words | |
.filter(word => ( !word.match(/http/) )) //dump words containing http | |
.filter(word => ( !word.match(/@/) )) //dump words containing @ |