Skip to content

Instantly share code, notes, and snippets.

😼
🧙‍♂️

Lex Robinson Lexicality

View GitHub Profile
@Lexicality
Lexicality / addon_bs.lua
Last active Dec 22, 2018
Binary search utility for finding troublesome addons
View addon_bs.lua
--[[
Addon Binary Searcher
Copyright 2018 Lex Robinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
View portable_hole.lua
AddCSLuaFile()
DEFINE_BASECLASS( "base_anim" )
ENT.PrintName = "Portable Hole"
ENT.Author = "Lexi"
ENT.Spawnable = true
ENT.Category = "Fun + Games"
@Lexicality
Lexicality / fonts-querystring.css
Created Oct 24, 2016
remy/inliner fails to inline fonts with querystrings in file mode
View fonts-querystring.css
@font-face {
src: url('./fonts-querystring.woff?');
}
View jetbot.lua
-- JetBot [v1.1]
-- by JetBoom
-- Clientside aimbot and esp for GMod10. This is a demonstration
-- of how easy you can make client-side things for naughty purposes. It should
-- be fixed soon enough by CRC checking. [ On most servers, anyway ;) ]
-- All concommands begin with aimbot_ or esp_
-- To use the aimbot, bind a key or mouse button to "+aimbot_scan". Hold the key and
View gist:8e2c5479944816ad141c
socket.on('chat message', function(msg){
var id = msg.mac.replace(/:/g, '-');
console.info("Got a message with id '%s': %o", id, msg);
if (!$('#' + id).length) {
$('#messages').append($('<li>', { id: id, text: msg.mac }));
}
});
View filter.js
filter = function(pred, iterable) {
return {
[Symbol.iterator]: () => {
const it = iterable[Symbol.iterator]();
return {
next: () => {
let next;
while (next = it.next(), !next.done) {
if (!pred(next.value)) {
continue;
@Lexicality
Lexicality / github2trelo.js
Created Aug 2, 2015
Github to Trello issue converter
View github2trelo.js
/* jshint esnext: true, node: true */
"use strict";
import Q from 'q';
import GithubAPI from 'github';
import Trello from 'node-trello';
// Top secret credentials
const trelloKey = "";
const trelloToken = "";
View gist:2a87840bf3b32372e55a
--- dynamic-image-resizer.php
+++ dynamic-image-resizer.php
@@ -15,7 +15,7 @@ add_action('template_redirect', 'dynimg_404_handler');
function dynimg_404_handler() {
if ( !is_404() ) return;
- if (preg_match('/(.*)-([0-9]+)x([0-9]+)(c)?\.(jpg|png|gif)/i',$_SERVER['REQUEST_URI'],$matches)) {
+ if (preg_match('/(.*)-([0-9]+)x([0-9]+)(c)?\.(jpe?g|png|gif)/i',$_SERVER['REQUEST_URI'],$matches)) {
$filename = $matches[1].'.'.$matches[5];
$width = $matches[2];
@Lexicality
Lexicality / _run_game.bat
Created Sep 21, 2014
lhsbs procssing launch bats
View _run_game.bat
@echo off
SET GAME_MODE=game
processing-java --force --present --output=%CD%\build-tmp --sketch=%CD%
View sent_portal.lua
AddCSLuaFile()
MsgN("Portal Loaded")
DEFINE_BASECLASS( "base_anim" )
ENT.PrintName = "Portal"
ENT.Author = "Lex Robinson"
ENT.Information = "Are you still there?"
ENT.Category = "Lex's Dev Stuff"
You can’t perform that action at this time.