!commands add !countercmd -ul=moderator "The current counter is $(count) ."
!commands add !resetcountercmd -ul=moderator -a=!commands edit !countercmd -c=0
struct Platform | |
{ | |
static let isSimulator: Bool = { | |
var isSim = false | |
#if arch(i386) || arch(x86_64) | |
isSim = true | |
#endif | |
return isSim | |
}() | |
} |
(function() { | |
var coverNavBar = true; | |
var css = ` | |
ytd-watch:not([fullscreen])[theater] #player.ytd-watch { | |
height: ` + (coverNavBar?'':'calc(') + '100vh' + (coverNavBar?'':' - 56px)') + ` !important; | |
max-height: none !important;` + (coverNavBar?` | |
position: relative; | |
margin-top: -56px; | |
z-index: 9999; |
aspectFitBoundsInBounds(src, dest, center=true) { | |
let WIDTH_KEY = "width"; | |
let HEIGHT_KEY = "height"; | |
let largerSide = src.height > src.width ? HEIGHT_KEY : WIDTH_KEY; | |
let smallerSide = largerSide == HEIGHT_KEY ? WIDTH_KEY : HEIGHT_KEY; | |
let aspectRatio = src[smallerSide]/src[largerSide]; | |
src[largerSide] = dest[largerSide]; | |
src[smallerSide] = dest[largerSide]*aspectRatio; |
@echo off | |
@set ASEPRITE="C:\Program Files (x86)\Steam\steamapps\common\Aseprite\Aseprite.exe" | |
@set FILENAME="%~n0" | |
if exist %FILENAME% ( | |
choice /c YN /m "Would you like to delete and recreate '%FILENAME%' directory " | |
if errorlevel == 2 goto save | |
if errorlevel == 1 goto delete | |
goto end | |
) |
static public void CSharpReNameFileNameExtention_And_Meta(string path,string newName) | |
{ | |
string[] pathArr = path.Split("/"[0]); | |
string tempStr = ""; | |
for (int i = 0; i < pathArr.Length-1; i++) | |
{ | |
tempStr = tempStr + pathArr[i]+"/"; | |
} | |
string renameDir = tempStr; |
import java.io.IOException; | |
import javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.layout.StackPane; | |
import javafx.scene.web.WebEngine; | |
import javafx.scene.web.WebView; | |
import javafx.stage.Stage; | |
public class Test extends Application { |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Folder\shell\Unity5] | |
@="" | |
"Icon"="%ProgramFiles%\\Unity\\Editor\\Unity.exe" | |
"MUIVerb"="Open as Unity Project" | |
[HKEY_CLASSES_ROOT\Folder\shell\Unity5\Command] | |
@="cmd /c start /D\"c:\\Program Files\\Unity\\Editor\\\" Unity.exe -projectPath \"%1\"" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>css injection | xero.nu</title> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<style type="text/css"> | |
body{ | |
font: normal 12pt "Times New Roman", serif; | |
background: #ccc; | |
color: #000066; |
package niochat; | |
import java.net.*; | |
import java.nio.*; | |
import java.nio.channels.*; | |
import java.io.IOException; | |
import java.util.*; | |
public class NiochatServer implements Runnable { | |
private final int port; |