Skip to content

Instantly share code, notes, and snippets.

View jarquafelmu's full-sized avatar

Sam Terrazas jarquafelmu

View GitHub Profile
on("chat:message", function(msg) {
if (msg.type == "api" && msg.content.toLowerCase().indexOf("!trunc") !== -1) {
var value = parseFloat(eval(msg));
if (value < 0)
value = ceil(value);
else
value = floor(value);
return value;
}
});
<label><input type="checkbox" /> Hi</label><label><input type="checkbox" /> Bye</label>
@jarquafelmu
jarquafelmu / SassMeister-input.scss
Created February 15, 2015 04:37
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
.btn {
border:none;
font-family: inherit;
color: inherit;
background: none;
@jarquafelmu
jarquafelmu / pathfinder.html
Last active August 29, 2015 14:20
Beta version of the new pathfinder sheet. This includes nested inline rolling, the new wounds threshold and energy drain.
<div style="display:none;">
<b style="color:red;font-size:150%;">Attention: </b>
</div>
<div class="sheet-table sheet-header">
<div class="sheet-table-row">
<div class="sheet-table-data sheet-center"><img src="http://paizo.com/image/content/Logos/PathfinderRPGLogo_500.jpeg" style="max-height: 40px;" alt="Pathfinder RPG Character Sheet" /></div>
<div class="sheet-table-data sheet-center sheet-label"><input title="@{character_name}" type="text" name="attr_character_name" placeholder="Character Name"/><br>Character Name</div>
<div class="sheet-table-data sheet-center sheet-label"><input title="@{player-name}" type="text" name="attr_player-name" placeholder="Player Name"/><br>Player Name</div>
<div class="sheet-table-data sheet-center sheet-label"><input title="@{race}" type="text" name="attr_race" placeholder="Race"/><br>Race</div>
</div>
@jarquafelmu
jarquafelmu / pathfinder.css
Created May 3, 2015 03:30
the css for the pathfinder character sheet
.sheet-desc-show:not(:checked)~.sheet-desc,
.sheet-macro-text-show:not(:checked)~.sheet-macro-text,
.sheet-sect-show:not(:checked)~.sheet-sect {
display:none;
}
.sheet-table {
display:table;
width:100%;
}
Traceback (most recent call last):
File "D:\User\AppData\Local\Programs\Python\Python37\lib\site-packages\raven_aiohttp.py", line 90, in _do_send
timeout=self.timeout
File "D:\User\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\client.py", line 370, in _request
timeout=timeout
File "D:\User\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 445, in connect
proto = await self._create_connection(req, traces, timeout)
File "D:\User\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 757, in _create_connection
req, traces, timeout)
File "D:\User\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 847, in _create_direct_connection
from redbot.core import commands, Config, checks
from redbot.core.utils.chat_formatting import error, info, warning
from redbot.core.utils.predicates import MessagePredicate
import discord
import re
import logging
import random
# create logger with 'spam_application'
log = logging.getLogger("courses.py")
@jarquafelmu
jarquafelmu / null pointer exception with gaia
Created December 31, 2019 18:37
Null pointer exception encounted after respawn after dying to Gaia Guardian
---- Minecraft Crash Report ----
WARNING: coremods are present:
RandomPatches (randompatches-1.12.2-1.18.1.1.jar)
SplashAnimationCoremod (SplashAnimation-0.2.1.jar)
BedPatch (bedpatch-2.2-1.12.2.jar)
Do not report to Forge! (If you haven't disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.5-1.12.2.jar)
Quark Plugin (Quark-r1.6-177.jar)
MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)
PS C:\WINDOWS\system32> py -3.8 -m pip install --user -U Red-DiscordBot --force-reinstall --no-cache-dir
Collecting Red-DiscordBot
Downloading https://files.pythonhosted.org/packages/0a/4a/517448cab477a5f9a8f1e14ab3f010c2ecdecceec2ed7d0642824c676f64/Red_DiscordBot-3.1.8-py3-none-any.whl (2.1MB)
|████████████████████████████████| 2.1MB 1.3MB/s
Collecting aiohttp-json-rpc==0.12.1
Downloading https://files.pythonhosted.org/packages/3c/74/fc449e69a44ebec9ced0ed24190af4274847475904a15706fc8d44d1f891/aiohttp_json_rpc-0.12.1-py3-none-any.whl
Collecting colorama==0.4.1
Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting tqdm==4.32.2
Downloading https://files.pythonhosted.org/packages/9f/3d/7a6b68b631d2ab54975f3a4863f3c4e9b26445353264ef01f465dc9b0208/tqdm-4.32.2-py2.py3-none-any.whl (50kB)
---- Minecraft Crash Report ----
WARNING: coremods are present:
RandomPatches (randompatches-1.12.2-1.18.1.1.jar)
SplashAnimationCoremod (SplashAnimation-0.2.1.jar)
BedPatch (bedpatch-2.2-1.12.2.jar)
Do not report to Forge! (If you haven't disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.9-1.12.2.jar)
Quark Plugin (Quark-r1.6-177.jar)
MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)