Skip to content

Instantly share code, notes, and snippets.

View moonexpr's full-sized avatar
🍪
Cookie

John moonexpr

🍪
Cookie
View GitHub Profile
@moonexpr
moonexpr / missing_chapter.lua
Last active March 14, 2017 07:07
A few essential ULX commands
--[[
Configuration Table
===============
Desc: Allows for easy configuration of missing chapters
Definations:
- ULib.ACCESS_SUPERADMIN: All superadmins may access this command.
- ULib.ACCESS_ADMIN: All administrators and higher may access this command.
- ULib.ACCESS_OPERATOR: All operators and higher may access this command.
- ULib.ACCESS_ALL: All users may access this command.
]]--
@moonexpr
moonexpr / potatovox.lua
Created October 28, 2016 16:49
this code is very old and redundant. (It's one of the first things I made)
function PotatoVox( URL )
sndcontrol = nil
cooldown = false
pixelsneeded = surface.ScreenWidth() / 1024
samples = {}
hook.Remove( "HUDPaint", "MusicEQ" )
locations = {
{Vector(-3211.039795, -10046.700195, 65.158920), Vector(-3226.494629, -10536.666016, 59.577229), Angle(-43.311, 157.197, 0.000), Angle(-33.016, -165.159, 0.000)},
<?php
require_once ("yaml.class.php");
function SteamIDFrom64 ($id) {
// Thanks Gio!? <https://facepunch.com/member.php?u=423489>
// https://facepunch.com/showthread.php?t=1238157
function parseInt ($string) {
if (preg_match ('/(\d+)/', $string, $array)) {
return $array[1];
} else {
@moonexpr
moonexpr / README.md
Last active October 3, 2018 23:26
Android app which allows you to stream videos directly to your Roku Device

Introduction

I made this app essentially because for some apparent reason no one has ever made on like it. Or if they have, we ruined it with advertisments. So I've made this app really bare bones and extremely easy to modify on app inventor if you really wish to (because I'm 16 and I don't know how2java :|)

Setup

  1. Get the IP Address of your Roku Device.
    • You can usurally get this on Roku 3 by going to setting > about on your home screen
  2. Paste your Roku IP in the first box
  3. Get the URL of the video you are requesting
  4. Use bit.ly or any other link shortener to ensure the app dosen't crash (please fix MIT)
    • The issue stems from the way MIT handles long strings
@moonexpr
moonexpr / calladmin.lua
Last active May 20, 2017 00:45
Use's discord relay to call administrators
local string = string
local net = net
local table = table
local SVDiscordRelay = SVDiscordRelay
calladmin = {}
local ERROR_LIB = 0x1
local ERROR_ENT = 0x2
local ERROR_CACHE = 0x3
@moonexpr
moonexpr / cl_soundmanager.lua
Last active May 28, 2017 18:24
Assists with sound assets over HTTP[s]
/**
mgr = soundmanager:Create ()
mgr:SetSource ("https://wiki.teamfortress.com/w/images/e/ef/Vote_started.wav")
mgr:Play ()
**/
soundmanager = {}
soundmanager.__index = soundmanager
function soundmanager:Create ()
@moonexpr
moonexpr / sv_soundmanager.lua
Created May 28, 2017 18:02
Assists with sound assets over HTTP[s]
util.AddNetworkString ("ISoundManager/Play")
soundmanager = {}
function soundmanager:Broadcast (strURL)
net.Start ("ISoundManager/Play")
net.WriteString (strURL)
net.Broadcast ()
end
#!/usr/bin/python3
import random
import sys
class Ciper:
def __init__(self):
self.numbers = [1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, 100, 103, 109, 129, 130]
def generateNoToken(self, string):

Keybase proof

I hereby claim:

  • I am literally-a-ninja on github.
  • I am chandara (https://keybase.io/chandara) on keybase.
  • I have a public key whose fingerprint is 9E23 73F5 C310 D508 DFF7 1F7A 2478 7216 DF85 ECB7

To claim this, I am signing this object:

@moonexpr
moonexpr / countdown.html
Last active April 5, 2021 18:26
Basic JS countdown
<!DOCTYPE html>
<html>
<head>
<title>Countdown</title>
<meta charset="UTF-8">
<meta
http-equiv="Cache-Control"
content="no-cache, no-store, must-revalidate"
/>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>