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 Twigl's "geekest mode" so the code runs inside a "main" function. | |
// FC.xy is fragcoord | |
// r.xy is resolution | |
// t is time (in seconds I think) | |
// o.rgba is output color | |
// This is the original code, before any readability improvements: | |
/* | |
#define X(S,D)I=ivec3(S);D=fract(float(I.x^I.y^I.z)*PI |
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
#!/usr/bin/env python3 | |
# | |
# Script to convert autotile from rpgmaker form to Tiled. | |
# Based on post: https://forums.rpgmakerweb.com/index.php?threads/auto-tiles-in-tiled-parallax-mapping-made-easier.97739/ | |
# | |
from PIL import Image | |
import sys |
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
import tweepy | |
import csv | |
import pandas as pd | |
####input your credentials here | |
consumer_key = '' | |
consumer_secret = '' | |
access_token = '' | |
access_token_secret = '' | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
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
// adapted from http://devlog-martinsh.blogspot.com/2011/03/glsl-8x8-bayer-matrix-dithering.html | |
uniform sampler2D bgl_RenderedTexture; | |
uniform sampler2D bayerTexture; | |
varying vec2 vUv; | |
float find_closest(float x, float y, float c0) { | |
float limit = texture2D(bayerTexture, vec2(x / 4.0, y / 4.0)).r; |
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
// Lua C API | |
#include <lua.hpp> | |
// C++ input/output streams | |
#include <iostream> | |
// MyObject as C++ class | |
class MyObject{ | |
private: | |
double x; | |
public: |
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
# Filename : Image2Map.py | |
# Authors : Georg Muntingh and Bjorn Lindeijer | |
# Version : 1.2 | |
# Date : June 16, 2010 | |
# Copyright : Public Domain | |
import os, sys, Image, networkx | |
class TileMap: | |
""" This class represents a map of tiles. |
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
# setup named pipes for wine<->linux shell communication | |
# | |
# APPLICATIONS: glue linux & wine, use linux in .bat scripts, system() C-calls etc | |
# USAGE: | |
# | |
# [linux] | |
# mkfifo /tmp/wine_in | |
# mkfifo /tmp/wine_out | |
# ./winetalk /tmp/wine_in /tmp/wine_out | |
# |