Skip to content

Instantly share code, notes, and snippets.

@josefnpat
josefnpat / readme.md
Last active October 20, 2025 19:54
Going from Lua 5.2 to PICO-8's Lua

This information applies to the PICO-8 0.1.6 release.

This document is here to help folks with a proficiency in Lua understand the limitations and discrepencies between Lua and PICO-8's Lua.

You can always view the manual or yellowafterlife's extended 0.1.1 manual.

General

  • anything written in uppercase the PICO-8 editor or .p8 is made lowercase by the editor. → editing the .p8 file directly can work
  • print(function() end) outputs the string function instead of the string function: 0x0000000.
@facelordgists
facelordgists / vc-legacy-class-remap.php
Last active October 13, 2015 22:12
Remap Visual Composer 4.3.x and newer CSS column class names back to legacy class names
<?php
/*
Plugin Name: Visual Composer Legacy Class Remapper
Description: Remap Visual Composer (4.3.x and newer) CSS column & row class names back to legacy (4.2.x and older) class names
Version: 1.0.0
Author: Milo Jennings
License: GPL2
Plugin URI: https://gist.github.com/1b0b602432175937f658
*/
@ruario
ruario / get-vivaldi-snap.sh
Last active December 24, 2017 00:31
Fetches the latest Vivaldi Linux rpm or deb package listed on the team blog
#!/bin/sh
case ${ARCH:-$(uname -m)} in
x86_64) DEBARCH=amd64; ARCH=x86_64 ;;
i?86) DEBARCH=i386; ARCH=i386 ;;
*) echo "Your architecture is not supported!" >&2; exit 1 ;;
esac
if [ "$1" = "-d" ]; then
PKGTYPE=deb
ARCH=$DEBARCH
@facelordgists
facelordgists / get-directory-via-sftp.sh
Last active August 29, 2015 14:28
SFTP using LFTP w/ fancy options
#!/bin/bash
# usage:
# sh get-directory-via-sftp.sh hostname:port username password source_folder destination_folder
# sh get-directory-via-sftp.sh example.com:2222 awesome_user Ultra-pw-9000 /remote-folder-name ~/Downloads/
# This will copy /remote-folder-name to ~/Downloads/remote-folder-name
HOST=$1
USER=$2
PASS=$3
@ryanpcmcquen
ryanpcmcquen / install-right-click-imgult-mac.sh
Last active October 14, 2016 13:39
install-right-click-imgult-mac.sh
#!/bin/sh
## curl https://gist.githubusercontent.com/ryanpcmcquen/2cb42266052a57992d55/raw/install-right-click-imgult-mac.sh | sh
cd
## Get the command line tools!
xcode-select --install
## You have to do this:
@ryanpcmcquen
ryanpcmcquen / index.html
Last active August 29, 2015 14:17
gisto-plnkr-template
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<!-- start the fun -->
@facelordgists
facelordgists / factory-2.0-field-definitions.json
Created March 18, 2015 22:53
Factory 2.0 DMS field definitions
{"fields":[
{
"title":"Icon",
"token":"icon",
"type":"select_icon",
"help":"Font Awesome Icon",
"default":"fa fa-heart"
},
{
"title":"Heading",
@facelordgists
facelordgists / less-color-classes.less
Last active August 29, 2015 14:17
Use LESS to generate class selectors for text, background, border, and link using a mixin.
@color-primary: #f50;
@color-secondary: #ccf;
@pumpkin: #fa7500;
#theme-color-mixin(@color, @class) {
.@{class}{color: @color}
.@{class}i{color: @color !important}
.@{class}-bg{background-color:@color}
.@{class}-bgi{background-color:@color !important}
@facelordgists
facelordgists / mobile-with-classes.less
Last active August 29, 2015 14:17
Mobile width classes
// MAX WIDTH CLASSES
// ******************
// Mobile
@media (max-width: 767px){
a[class*=m-maxw-]{
display: inline-block;
}
.m-maxw-100p { max-width:100% !important}
.m-maxw-90p { max-width:90% !important}
.m-maxw-80p { max-width:80% !important}
@PVince81
PVince81 / gist:63800bffd437f2175da9
Last active June 16, 2021 05:54
build-sdl2-for-torchlight.sh
# set this to your Torchlight directory
TORCHLIGHTDIR=$HOME/games/Torchlight
hg clone http://hg.libsdl.org/SDL
# check out the revision before the one that introduces the bug as advised here: http://forums.runicgames.com/viewtopic.php?f=24&t=33360&start=60#p474739
hg up 4de584a3a027 --clean
# Fix X11 compilation issues with another changeset
hg export 6caad66a4966 > patch
hg import patch