Skip to content

Instantly share code, notes, and snippets.

View sylae's full-sized avatar
🫀

MisfitMaid sylae

🫀
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sylae
sylae / userComments.php
Created May 2, 2019 07:27
pull user comments (optionally) from a subreddit
<?php
$user = "sylae";
$subreddit = null;
$base_url = "https://www.reddit.com/user/$user/comments.json?count=100";
$posts = [];
$continue = true;
while ($continue) {
sleep(1);
<?php
/**
* From the command-line, run this before starting: composer require team-reflex/discord-php
*/
include __DIR__ . '/vendor/autoload.php';
class Scapegoat {
@sylae
sylae / ohgodkillme.txt
Created August 15, 2017 09:27
markov wormfics
Nth Dimensional Bullshit Poker-Thinker Edition (Worm/Calvin and Hobbes)
A Good (DXD)
...And Justice For Any Of The Girl(Worm Fanfic)
RedFox's Ideas & Vigor (Alt.Worm CYOA SI)
Goblin Queen of Man Goes to Satanism
Birth by Night
Pariah (Worm)
Formerly Known as Intended (WORM/Stargate)
Grand Evolution [Fusion]
Unsung Heroes: Breaking (Worm)
@sylae
sylae / MDToHTML.php
Last active January 28, 2018 01:22
Convert lyx file to markdown and BBcode
<?php
require 'vendor/autoload.php';
use Michelf\MarkdownExtra;
$md = file_get_contents("php://stdin");
$html = MarkdownExtra::defaultTransform($md);
echo $html;
@sylae
sylae / IPB.php
Created May 27, 2017 17:57
sylae/updatePostCount
<?php
/*
* @author Keira Sylae Aro <sylae@calref.net>
* @copyright Copyright (C) 2017 Keira Sylae Aro <sylae@calref.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@sylae
sylae / gist:bccf52eaa77751dbd02b
Created June 29, 2015 17:07
Marooned session 1 dice rolls (Name,DiceType,Result)
Nabila,6,2
Nabila,6,4
Nabila,6,2
Nabila,6,1
Nabila,6,5
Nabila,6,1
Nabila,6,5
Nabila,6,2
Nabila,10,9
Nabila,6,2
i686-w64-mingw32-g++ -c tools/soundtool.cpp -o tools/soundtool.o -Wall -O2 -std=c++0x
In file included from tools/soundtool.cpp:19:0:
tools/soundtool.h:39:2: error: #error Invalid platform
tools/soundtool.cpp: In function ‘void play_sound(short int, short int)’:
tools/soundtool.cpp:152:7: error: ‘sounds_missing’ was not declared in this scope
tools/soundtool.cpp:182:20: error: ‘hModule’ was not declared in this scope
tools/soundtool.cpp:206:19: error: ‘sound_pause’ was not declared in this scope
tools/soundtool.cpp:211:6: error: ‘sounds_missing’ was not declared in this scope
tools/soundtool.cpp:234:19: error: ‘sound_pause’ was not declared in this scope
tools/soundtool.cpp:239:6: error: ‘sounds_missing’ was not declared in this scope
@sylae
sylae / gist:9906668
Created April 1, 2014 02:38
Play a local base64-encoded sound using buzz
<!DOCTYPE html>
<html>
<head>
<title>A test</title>
<script type="text/javascript" src="buzz/buzz.js"></script>
<script type="text/javascript">
var chat = new buzz.sound();
function encodeFile() {
var file = document.querySelector('input[type=file]').files[0];
var reader = new FileReader();
@sylae
sylae / Bekora
Last active August 29, 2015 13:56
Bloodstained Sky character
[b]Bekora Tiquo[/b] [size=3][i]Human Mechanic[/i][/size]
[b]XP[/b]: 60 [size=3](Advancement 12)[/size]
[b]Wounds[/b]: 0
[b]Fatigue[/b]: 0
[b]Power Points[/b]: 10/[size=3]10[/size]
[spoileralt=Skills and Derivatives]
[b]Agility[/b]: d10
[b]Smarts[/b]: d10
[b]Spirit[/b]: d8