This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Bouncing Ball</title> | |
<script data-pace-options='{ "eventLag": false }' src="https://cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.min.js"></script> | |
<style> | |
.pace .pace-progress { height:4px; background:#88f; position:fixed; z-index:9999; top:0; right:100%; width:100%; } | |
.pace-inactive { display:none; } | |
.pace { -webkit-pointer-events:none; pointer-events:none; -webkit-user-select:none; -moz-user-select:none; user-select:none; } | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
"use strict"; | |
var root = this, | |
Chart = root.Chart, | |
helpers = Chart.helpers; | |
Chart.defaults.bartop = helpers.extendDeep({},Chart.defaults.bar); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use ssh to run a socks proxy, locked down by IP, probably running on a NAT VPS. | |
# note that this script shouid be run inside byobu for longterm proxying | |
# beware that you will need to stop and then run this script again if your IP changes. | |
# the port to share on must be in valid range for your nat vps | |
# use this combined with the public ip to connect a browser to this socks server | |
PORT=1001 | |
# find your public ip here-> https://www.google.com/search?q=what+is+my+ip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo install -o root -g root -m 0600 /dev/null /swapfile | |
dd if=/dev/zero of=/swapfile bs=1k count=256k | |
mkswap /swapfile | |
swapon /swapfile | |
echo "/swapfile swap swap auto 0 0" | sudo tee -a /etc/fstab | |
sudo sysctl -w vm.swappiness=10 | |
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- This is fun64 code, you can copy paste it into https://xriss.github.io/fun64/pad/ to run it. | |
-- | |
hardware,main=system.configurator({ | |
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette. | |
update=function() update() end, -- called repeatedly to update+draw | |
}) | |
-- we will call this once in the update function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wstr=require("wetgenes.string") | |
local wgrd=require("wetgenes.grd") | |
local tardis=require("wetgenes.tardis") -- matrix/vector math | |
local bitdown=require("wetgenes.gamecake.fun.bitdown") | |
local bitdown_font_4x8=require("wetgenes.gamecake.fun.bitdown_font_4x8") | |
-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- This is fun64 code, you can copy paste it into https://xriss.github.io/fun64/pad/ to run it. | |
-- | |
hardware,main=system.configurator({ | |
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette. | |
update=function() update() end, -- called repeatedly to update+draw | |
}) | |
local wstr=require("wetgenes.string") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wstr=require("wetgenes.string") | |
hardware,main=system.configurator({ | |
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette. | |
graphics=function() return graphics end, | |
update=function() update() end, -- called repeatedly to update+draw | |
}) | |
-- debug text dump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wstr=require("wetgenes.string") | |
local chatdown=require("wetgenes.gamecake.fun.chatdown") -- conversation trees | |
local bitdown=require("wetgenes.gamecake.fun.bitdown") -- ascii to bitmap | |
local chipmunk=require("wetgenes.chipmunk") -- 2d physics https://chipmunk-physics.net/ | |
----------------------------------------------------------------------------- | |
--[[#hardware |
OlderNewer