[BASH][1] script to build a [texture atlas][2] for games. Requires [ImageMagick][3].
Just run
>> require 'uri' | |
>> URI.extract('hello world test: https://helloworld.com test') | |
=> ["test:", "https://helloworld.com"] |
#include <stdio.h> | |
#include <unistd.h> | |
int main(){const char *O_o[]=/*msz*/{ | |
" ,------,\n" "v| /\\__/\\ \n" | |
" |__( ^ w ^) \n" " \" \"\n", | |
" ,------,\n" | |
"~| /\\__/\\\n" | |
" |___( ^ w ^) \n" | |
" \" \"\n", |
L#k>L#0 | |
WjZj | |
Wi>L# | |
L#i>L# | |
F#i>L# | |
L#u | |
k>L#0 | |
Wk>L# | |
Wi>L# | |
6.#h |
(puts "Hello World in Runy ...") | |
(def (say (x) | |
(puts "Hello World in #{x} once again ...") | |
)) | |
(class (Runy | |
(def (say (x) | |
(puts "Hello World in #{x} for the last time ...") | |
)) |
/* | |
(Open)GL Sans Triangles. | |
Mihail Szabolcs, Public Domain. | |
Make: | |
gcc notris.c -lglut -lGL -lGLU -funroll-loops -O3 -o notris | |
Run: | |
./notris |
#!/bin/bash | |
SEARCH_URL='https://twitter.com/search?q=%23screenshotsaturday&src=savs&mode=photos' | |
CACHE_DIR=$HOME/.scrsat | |
CACHE_FILE=$CACHE_DIR/cache | |
mkdir -p $CACHE_DIR | |
touch $CACHE_FILE | |
function get_images() |
; | |
; Prints first N from the Fibonacci sequence. | |
; | |
read_n: | |
mov dx, 78 | |
prc dx | |
mov dx, 58 | |
prc dx |
#!/usr/bin/env python | |
# Mihail Szabolcs - Released under the WTFPL (http://en.wikipedia.org/wiki/WTFPL) license. | |
from gimpfu import * | |
def nx_create_font_atlas(font, font_size, font_weight, antialiasing, uppercase, image_width, image_height, image_type, offset_x, offset_y): | |
gimp.set_foreground(255, 255, 255) | |
gimp.set_background(0, 0, 0) | |
if image_type == GRAY_IMAGE: |