Skip to content

Instantly share code, notes, and snippets.

View dylanrenwick's full-sized avatar

Dylan Renwick dylanrenwick

View GitHub Profile
@dylanrenwick
dylanrenwick / sum-it.js
Last active November 26, 2018 16:04
Sum-It parser
function lex(code) {
code = code.split('\n');
code = {
src: code,
height: code.length,
width: 0
}
code.src = code.src.map(line => { code.width = Math.max(code.width, line.length); return line.split(''); });
@dylanrenwick
dylanrenwick / login-register.php
Created August 12, 2017 18:31
Script for both logging into or registering an account on a website.
<?php
if (isset($_POST['login']) && $_POST['login']) {
if (!isset['username'] && !isset['email']) {
echo 'No username or email provided!';
exit(1);
}
if (!isset['passwd']) {
echo 'No password provided!';
exit(1);
}
using System;
using System.Collections.Generic;
using RedditSharp;
using RedditSharp.Things;
namespace RedditScanner
{
public class RedditScreener
{