This file contains 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 newlisp | |
; simple encoder | |
(define (url-encode str) | |
(replace {([^a-zA-Z0-9])} str (format "%%%2X" (char $1)) 0)) | |
(define (encode_space str) | |
(replace " " str "%20" ) | |
) | |
This file contains 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
#!/bin/bash | |
FILENAME=${1} | |
MIN_FRAGMENT_LENGTH=300 | |
if [ ! -f "${FILENAME}" ]; then | |
echo "FILE NOT FOUND: $FILENAME" | |
exit 1 | |
fi |
This file contains 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
mame2003-plus_analog = "digital" | |
mame2003-plus_art_resolution = "1" | |
mame2003-plus_brightness = "1.0" | |
mame2003-plus_cheat_input_ports = "disabled" | |
mame2003-plus_core_save_subfolder = "enabled" | |
mame2003-plus_core_sys_subfolder = "enabled" | |
mame2003-plus_dcs_speedhack = "disabled" | |
mame2003-plus_deadzone = "20" | |
mame2003-plus_display_artwork = "enabled" | |
mame2003-plus_display_setup = "disabled" |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <netdb.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <sys/socket.h> | |
#include <unistd.h> |
This file contains 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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"github.com/veandco/go-sdl2/sdl" | |
"os" | |
) | |
var winTitle string = "Go-SDL2 Render" |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <SDL2/SDL.h> | |
int main() { | |
int windowHeight = 240; | |
int windowWidth = 320; | |
if (SDL_Init(SDL_INIT_VIDEO) < 0) { |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <SDL2/SDL.h> | |
int main() { | |
int windowHeight = 240; | |
int windowWidth = 320; | |
if (SDL_Init(SDL_INIT_VIDEO) < 0) { |
This file contains 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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: expand_rootfs | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 3 | |
# Default-Stop: | |
# Short-Description: Expand the root filesystem to fill partition | |
# Description: | |
### END INIT INFO |
This file contains 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
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
"github.com/godbus/dbus" | |
// "github.com/godbus/dbus/introspect" |
This file contains 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
package main | |
import ( | |
"fmt" | |
"github.com/godbus/dbus" | |
"github.com/godbus/dbus/introspect" | |
"os" | |
//"encoding/xml" | |
) |