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() { | |
'use strict'; | |
function resizeResults() { | |
var job = setTimeout(() => document.querySelectorAll('.events-results-table').forEach(el => (el.style.width = '100%') && el.offsetParent !== null && (clearTimeout(job) || console.log('Fixed Splunk wrapping'))), 2000); | |
} | |
setTimeout(() => document.querySelectorAll('[data-type=events]')[0].addEventListener('click', () => resizeResults()), 1000); | |
resizeResults(); | |
window.resizeResults = resizeResults; | |
})(); |
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
javascript:(function(){var job = setTimeout(() => document.querySelectorAll('.events-results-table').forEach(el => (el.style.width = '100%') && clearTimeout(job)), 2000);})() |
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
[ | |
{ | |
"name": "carrots", | |
"price": 50 | |
}, | |
{ | |
"name": "onions", | |
"price": 30 | |
}, | |
{ |
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
#!/bin/sh | |
read -r -d '' MAN <<'EOF' | |
Outputs custom strings when the current time is in a given time range. | |
ENV VARIABLES: | |
$TIME_RANGE_START | |
Epoch time | |
Example: |
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
http://www.korgforums.com/forum/phpBB2/viewtopic.php?t=87030&sid=f447b05eafe84c1d93013b19ae285eab | |
Glossary for Korg Kronos | |
(shared) | |
ADC: Analog-to-Digital Converter | |
ADSR: ADSR envelope: Attack-Decay-Sustain-Release | |
Adv: Advanced (cf Basic) | |
.AIF and .AIFF: audio file format (cf .WAV) | |
AKR: After Key Release (a KARMA term) |
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
window.cardListHeight = _.debounce(function() { | |
const el = document.querySelector('.card-list'); | |
el.style.height = `${document.documentElement.clientHeight - el.getBoundingClientRect().top}px`; | |
}, 300); | |
window.addEventListener('resize', function(){window.cardListHeight()}); |
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 parser=new DOMParser();var expectedContent='hello-world';var result=parser.parseFromString('<div><![CDATA['+expectedContent+']]></div>','text/xml').firstChild.firstChild.data;if(result!=expectedContent)console.log('FAIL');else console.log('SUCCESS');console.log('result:',result);})() |
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
#!/bin/sh | |
# First arg is referrer value | |
if [ $0 ]; then | |
REFERRER="-H 'Referer: $1'" | |
fi | |
cat urls.txt | xargs -I {} sh -c "curl -vksSL $REFERRER {} 2>&1 >/dev/null" | grep --color=none -E '(Connected|Referer|X-Frame-Options)' |
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
document.registerElement('x-parse', { | |
prototype: {attachedCallback() { | |
let contentStyle = getComputedStyle(this)['content'] | |
contentStyle != 'normal' ? alert(`x-parse content ${contentStyle}`) : 0 | |
this.currentStyle = 'none' | |
}} | |
}) |
NewerOlder