Skip to content

Instantly share code, notes, and snippets.

GNU cuu

Block or report user

Report or block cuu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cuu
cuu / retroarch-core-options.cfg
Created Aug 6, 2019
gameshell v0.4 mame 2003 plus fix for gamepad
View retroarch-core-options.cfg
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"
View simple_irc.c
#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>
View sdl_2.go
package main
import (
"fmt"
"math/rand"
"github.com/veandco/go-sdl2/sdl"
"os"
)
var winTitle string = "Go-SDL2 Render"
View sdl_2.c
#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) {
View sdl_1.c
#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) {
@cuu
cuu / expand_rootfs
Last active Jul 20, 2019
expand_rootfs for gameshell
View expand_rootfs
#!/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
@cuu
cuu / simple_agent.go
Created Feb 5, 2019
simple_agent.go
View simple_agent.go
package main
import (
"fmt"
"log"
"os"
"strings"
"github.com/godbus/dbus"
// "github.com/godbus/dbus/introspect"
@cuu
cuu / server.go
Created Feb 3, 2019
godbus server example
View server.go
package main
import (
"fmt"
"github.com/godbus/dbus"
"github.com/godbus/dbus/introspect"
"os"
//"encoding/xml"
)
@cuu
cuu / c7_install_tensorflow.sh
Created Nov 28, 2016
centos7 install tensorflow
View c7_install_tensorflow.sh
sudo yum -y install epel_release
sudo yum -y install gcc gcc-c++ python-pip python-devel atlas atlas-devel gcc-gfortran openssl-devel libffi-devel
pip install --upgrade virtualenv
virtualenv --system-site-packages ~/venvs/tensorflow
source ~/venvs/tensorflow/bin/activate
pip install --upgrade numpy scipy wheel cryptography #optional
#visit https://www.tensorflow.org/versions/master/get_started/os_setup.html#pip-installation to get the latest url
#and only cpu version I need
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
You can’t perform that action at this time.