Skip to content

Instantly share code, notes, and snippets.

View Dinir's full-sized avatar
🦽
Lost

Dinir Nertan Dinir

🦽
Lost
View GitHub Profile
@Dinir
Dinir / speechBalloon.css
Created December 25, 2018 16:10
Streamlabs alert box: add speech balloon style triangular bluge
/* set colors */
#message-wrap { border-color: grey; }
#balloon-border, #balloon-border::after { background: grey; }
#balloon-border::before { background: white; }
/* set thickness */
#message-wrap { border-width: 3px; }
#balloon-border, #balloon-border::after { width: 3px; }
#balloon-border::before { height: 3px; top: -3px; }
#message-wrap {
@Dinir
Dinir / shakeUsingMic.js
Last active December 6, 2018 03:52
shake a dom by shouting at your microphone
const shakeConfig = {
targetDom: null,
shakeThreshold: [65,75,85,95,105],
shakeScale: 2
}
const getTwoRandomNumbers = () => [
Math.random(), Math.random()
]
const isShiftable = element => {
@Dinir
Dinir / chatbox.css
Last active May 6, 2024 03:40
Streamlabs Chat Box - Scrolling Sideway
body {
background: $background_color;
color: $text_color;
font-size: $font_size;
}
.colon, .name {
height: 0px;
}
@Dinir
Dinir / 72-wacom.conf
Last active December 19, 2018 09:47
My setting for Wacom tablet CTH-490 to use on Linux
# put this file in `/etc/X11/xorg.conf.d/`. If the directory doesn't exist you can just make one.
Section "InputClass"
Identifier "Wacom CTH-490 Pad"
MatchProduct "Intuos PT S 2 (WL) Pad pad|Intuos PT S 2 Pad pad"
MatchDevicePath "/dev/input/event*"
# adjust tablet's 16:10 area to 16:9, cropping top and bottom.
Option "TopX" "0"
Option "TopY" 475"
@Dinir
Dinir / foo_np_simple-no_indicator.txt
Last active August 15, 2020 11:41
My format for 'Now Playing Simple' foobar2000 plugin.
$if(
%isplaying%,
$if(%ispaused%,Ⅱ,▶)
$if(%album%, %album%$crlf() )
$if(%artist%, %artist%$crlf() )
$if(%title%, %title% , %filename%)
)
@Dinir
Dinir / streamTitle.html
Last active March 26, 2018 20:08
Little 2-line text view to use as a stream title in a stream layout
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Stream Title Display</title>
<style>
body {
margin: 0;
@Dinir
Dinir / showCenterOfWindow.js
Last active February 1, 2018 08:01
I need this to adjust the position of monitors.
document.body.style.margin = "0";
document.body.style.overflow = "hidden";
const windowSize = {x:window.innerWidth, y:window.innerHeight};
const canvas = document.createElement("canvas");
const ctx = canvas.getContext("2d");
canvas.setAttribute("width", windowSize.x);
canvas.setAttribute("height", windowSize.y);
document.body.appendChild(canvas);
@Dinir
Dinir / startCounter.html
Last active January 2, 2018 05:49
Counts the time you pressed the start button in your joystick.
<!DOCTYPE html>
<html>
<style>
body {
background-color: black;
font-family: "Fira Code";
color: white;
}
#counter {
@Dinir
Dinir / wtfisthis.php
Created December 20, 2017 03:25
you're a terrible coddrererrerewrewrarfawerf
<?php
class FormOption
{
public
$style,
$suggested_value,
$placeholder,
$autofocus;
@Dinir
Dinir / currentTime.html
Last active December 19, 2017 05:04
display current time
<!DOCTYPE html>
<html>
<style>
body {
margin: 0;
padding: 0;
background-color: black;
color: white;
font-family: "Fira Code";