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
let occurrences = []; | |
var lastMessage = null; | |
var inSend = false; | |
async function loopChat() { | |
if(inSend) return; | |
let elementsWithAriaLabel = document.querySelectorAll('[aria-label]'); | |
console.log('Check new message'); | |
elementsWithAriaLabel.forEach(async element => { | |
var ariaLabel = element.getAttribute('aria-label'); |
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 | |
// Screen for Server must be open with : screen -dmS minecraft -L -Logfile /home/ubuntu/minecraft/screen.log | |
$cnx = array(); | |
$handle = fopen("/home/ubuntu/minecraft/screen.log", "r"); | |
if($handle){ | |
while(($line = fgets($handle))!== false){ | |
$line = str_replace(array("\r", "\n"), '', $line); | |
if($line=='^C'){} | |
elseif(substr($line, 0, 1)!='[') continue; | |
$time = strtotime(substr($line, 1, 20)); |
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
/* | |
* CSS File of Material icons. | |
* CSS code based on: | |
* https://google.github.io/material-design-icons/#icon-font-for-the-web | |
*/ | |
//= depend_on_asset "MaterialIcons-Regular.eot" | |
//= depend_on_asset "MaterialIcons-Regular.woff2" | |
//= depend_on_asset "MaterialIcons-Regular.woff" | |
//= depend_on_asset "MaterialIcons-Regular.ttf" |
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
; Retrieves saved clipboard information since when this script last ran | |
Loop C:\tmp\clipvar*.txt | |
{ | |
clipindex += 1 | |
FileRead clipvar%A_Index%, %A_LoopFileFullPath% | |
FileDelete %A_LoopFileFullPath% | |
} | |
maxindex := clipindex | |
OnExit ExitSub |
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 locStore = { | |
internalVar: [], | |
get: function(name){ | |
if(typeof localStorage!=='undefined') return localStorage.getItem(name); | |
else if(locStore.internalVar[name]!==undefined) return locStore.internalVar[name]; | |
else return null; | |
}, | |
set: function(name, value){ | |
if(typeof localStorage!=='undefined') return localStorage.setItem(name, value); | |
else locStore.internalVar[name] = value; |
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
/** | |
* UglifyCSS - StandAlone | |
* Port of UglifyCSS | |
* Author: David Chardonnens - https://github.com/gloony | |
* MIT licenced | |
*/ | |
/** | |
* UglifyCSS | |
* Port of YUI CSS Compressor to NodeJS |