Skip to content

Instantly share code, notes, and snippets.

🕹

Max Glenister omgmog

🕹
Block or report user

Report or block omgmog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@omgmog
omgmog / arkanoid.p8
Last active Aug 4, 2018
Arkanoid (wip) - following the Pico-8 Hero video series
View arkanoid.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function center(width)
return (screen_width / 2) - (width / 2)
end
function _init()
cls()
View cog.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function sleep(s)
for i=1,s*30 do
flip()
end
end
c = 0
@omgmog
omgmog / dialog.p8
Last active Aug 1, 2018
Dialog system for Pico-8
View dialog.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function sleep(s)
for i=1,s*30 do
flip()
end
end
@omgmog
omgmog / app_main.c
Created Jul 12, 2018
Hello World example for Pocket Sprite
View app_main.c
#include "ugui.h"
#include "8bkc-hal.h"
#include "8bkc-ugui.h"
// used later in example
float health = 100;
void app_main() {
kchal_init();
kcugui_init();
@omgmog
omgmog / slack-biggest-files.py
Created May 11, 2018
Get the 10 biggest files in a Slack workspace.
View slack-biggest-files.py
from slacker import Slacker
import itertools
from hurry.filesize import size
slack = Slacker('<API KEY>')
pages = slack.files.list(page=1).body['paging']['pages']
all_the_files = list(itertools.chain(*[slack.files.list(page=i).body['files'] for i in range(1,pages + 1)]))
@omgmog
omgmog / userChrome.css
Last active Apr 27, 2018
Firefox userChrome tweaks for Windows and macOS
View userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
window, page, dialog, wizard {
color: -moz-DialogText;
font: "SF Pro Text" !important;
}
:root:-moz-lwtheme-darktext {
--url-and-searchbar-background-color: #fff;
--chrome-background-color: #E3E4E6;
@omgmog
omgmog / jekyll-to-grav.js
Last active Feb 4, 2019
Port Jekyll posts to Grav CMS
View jekyll-to-grav.js
const fs = require('fs');
const glob = require('glob');
const fm = require('front-matter');
const path = require('path');
const write = require('write');
glob("!(node_modules)/**/*.md", {}, (err, files) => {
files.forEach((file) => {
fs.readFile(file, 'utf8', (err, data) => {
if (err) throw err;
View gist.user.js
// ==UserScript==
// @name Close and open url
// @namespace https://omgmog.net
// @version 0.1
// @description close issue and open first link from issue
// @author Max Glenister
// @match https://github.com/omgmog/meta-ifttt-reading-list/issues/*
// @grant none
// ==/UserScript==
@omgmog
omgmog / open-all-the-issues.user.js
Created Jul 31, 2017
Open all of the issues in new tabs when clicking a link of `href="open10"`
View open-all-the-issues.user.js
// ==UserScript==
// @name Open all the issues
// @namespace https://blog.omgmog.net/
// @version 0.1
// @description Opens all of the issues on the current page in new windows
// @author You
// @match https://github.com/*/*/issues
// @grant none
// ==/UserScript==
@omgmog
omgmog / VRUXUI.md
Last active Jan 30, 2020
This is mirrored from the now unavailable http://vruxui.com/video-gallery
View VRUXUI.md

Click an image below to view the video on Youtube.

VRPlanetarium

Menu Interactions

Environment

You can’t perform that action at this time.